Jelajahi Sumber

Fixed compiler warning

Sam Lantinga 11 tahun lalu
induk
melakukan
8ef5651185
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/video/cocoa/SDL_cocoamessagebox.m

+ 1 - 1
src/video/cocoa/SDL_cocoamessagebox.m

@@ -132,7 +132,7 @@ Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
     }
     else
     {
-        returnValue = SDL_SetError("Did not get a valid `clicked button' id: %d", clicked);
+        returnValue = SDL_SetError("Did not get a valid `clicked button' id: %ld", (long)clicked);
     }
 
     [pool release];