src/video/cocoa/SDL_cocoawindow.m
changeset 5873 be86fd8dca58
parent 5646 fe1df351ca3d
child 6044 35448a5ea044
--- a/src/video/cocoa/SDL_cocoawindow.m	Sun Sep 04 20:45:38 2011 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Sep 07 10:54:14 2011 -0400
@@ -401,7 +401,7 @@
     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;
 
@@ -421,7 +421,7 @@
             }
         } 
 
-        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 */