Fixed compiler warning on 64-bit builds.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Aug 2011 13:41:35 -0400
changeset 5632 f2aeea007e85
parent 5631 3e1cbc6d7cad
child 5633 21a6e87905e3
Fixed compiler warning on 64-bit builds.
src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Mon Aug 22 13:34:58 2011 -0400
+++ b/src/haptic/darwin/SDL_syshaptic.c	Mon Aug 22 13:41:35 2011 -0400
@@ -520,7 +520,7 @@
 int
 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
 {
-    if (IOObjectIsEqualTo((io_object_t) haptic->hwdata->device,
+    if (IOObjectIsEqualTo((io_object_t) ((size_t)haptic->hwdata->device),
                           joystick->hwdata->ffservice))
         return 1;
     return 0;