Fixed Windows build due to an implicit memcpy generated by the optimizer
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Aug 2017 16:09:44 -0700
changeset 112932759ce803a47
parent 11292 df399ea01ee5
child 11294 593a22326cbf
Fixed Windows build due to an implicit memcpy generated by the optimizer
src/events/SDL_gesture.c
     1.1 --- a/src/events/SDL_gesture.c	Mon Aug 14 14:14:45 2017 -0700
     1.2 +++ b/src/events/SDL_gesture.c	Mon Aug 14 16:09:44 2017 -0700
     1.3 @@ -481,7 +481,7 @@
     1.4      SDL_zero(SDL_gestureTouch[i]);
     1.5  
     1.6      SDL_numGestureTouches--;
     1.7 -    SDL_gestureTouch[i] = SDL_gestureTouch[SDL_numGestureTouches];
     1.8 +    SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
     1.9      return 0;
    1.10  }
    1.11