Skip to content

Commit

Permalink
Fixed Windows build due to an implicit memcpy generated by the optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 14, 2017
1 parent e9d4e31 commit 96e15fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_gesture.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 96e15fa

Please sign in to comment.