Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warning on 32-bit Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 7, 2011
1 parent e3995c0 commit 5620bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -401,7 +401,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
enumerator = [touches objectEnumerator];
touch = (NSTouch*)[enumerator nextObject];
while (touch) {
SDL_TouchID touchId = (SDL_TouchID)[touch device];
const SDL_TouchID touchId = (SDL_TouchID) ((size_t) [touch device]);
if (!SDL_GetTouch(touchId)) {
SDL_Touch touch;

Expand All @@ -421,7 +421,7 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
}
}

SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
const SDL_FingerID fingerId = (SDL_FingerID) ((size_t) [touch identity]);
float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y;
/* Make the origin the upper left instead of the lower left */
Expand Down

0 comments on commit 5620bd9

Please sign in to comment.