Fixed compiler warning on 32-bit Mac OS X.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 07 Sep 2011 10:54:14 -0400
changeset 5873be86fd8dca58
parent 5871 92cda988b481
child 5875 0018b39c1561
Fixed compiler warning on 32-bit Mac OS X.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Sep 04 20:45:38 2011 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Sep 07 10:54:14 2011 -0400
     1.3 @@ -401,7 +401,7 @@
     1.4      enumerator = [touches objectEnumerator];
     1.5      touch = (NSTouch*)[enumerator nextObject];
     1.6      while (touch) {
     1.7 -        SDL_TouchID touchId = (SDL_TouchID)[touch device];
     1.8 +        const SDL_TouchID touchId = (SDL_TouchID) ((size_t) [touch device]);
     1.9          if (!SDL_GetTouch(touchId)) {
    1.10              SDL_Touch touch;
    1.11  
    1.12 @@ -421,7 +421,7 @@
    1.13              }
    1.14          } 
    1.15  
    1.16 -        SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
    1.17 +        const SDL_FingerID fingerId = (SDL_FingerID) ((size_t) [touch identity]);
    1.18          float x = [touch normalizedPosition].x;
    1.19          float y = [touch normalizedPosition].y;
    1.20          /* Make the origin the upper left instead of the lower left */