From 96e15fa7f67986cdecffc709f4c81323a6da7a35 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 14 Aug 2017 16:09:44 -0700 Subject: [PATCH] Fixed Windows build due to an implicit memcpy generated by the optimizer --- src/events/SDL_gesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c index e8477acbb..4193b9d17 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; }