Commit 35ef24dd authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed compiler warning on 32-bit Mac OS X.

parent 1ee4e6dc
...@@ -401,7 +401,7 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -401,7 +401,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
enumerator = [touches objectEnumerator]; enumerator = [touches objectEnumerator];
touch = (NSTouch*)[enumerator nextObject]; touch = (NSTouch*)[enumerator nextObject];
while (touch) { while (touch) {
SDL_TouchID touchId = (SDL_TouchID)[touch device]; const SDL_TouchID touchId = (SDL_TouchID) ((size_t) [touch device]);
if (!SDL_GetTouch(touchId)) { if (!SDL_GetTouch(touchId)) {
SDL_Touch touch; SDL_Touch touch;
...@@ -421,7 +421,7 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -421,7 +421,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
} }
} }
SDL_FingerID fingerId = (SDL_FingerID)[touch identity]; const SDL_FingerID fingerId = (SDL_FingerID) ((size_t) [touch identity]);
float x = [touch normalizedPosition].x; float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y; float y = [touch normalizedPosition].y;
/* Make the origin the upper left instead of the lower left */ /* Make the origin the upper left instead of the lower left */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment