Skip to content
Permalink
Browse files

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

  • Loading branch information
slouken committed Aug 14, 2017
1 parent e9d4e31 commit 96e15fa7f67986cdecffc709f4c81323a6da7a35
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 96e15fa

Please sign in to comment.