Commit 96e15fa7f67986cdecffc709f4c81323a6da7a35

Sam Lantinga 2017-08-14T16:09:44

Fixed Windows build due to an implicit memcpy generated by the optimizer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c
index e8477ac..4193b9d 100644
--- a/src/events/SDL_gesture.c
+++ b/src/events/SDL_gesture.c
@@ -481,7 +481,7 @@ int SDL_GestureDelTouch(SDL_TouchID touchId)
     SDL_zero(SDL_gestureTouch[i]);
 
     SDL_numGestureTouches--;
-    SDL_gestureTouch[i] = SDL_gestureTouch[SDL_numGestureTouches];
+    SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
     return 0;
 }