diff --git a/src/video/cocoa/SDL_cocoamessagebox.m b/src/video/cocoa/SDL_cocoamessagebox.m index 730d952ee..f022fcf3b 100644 --- a/src/video/cocoa/SDL_cocoamessagebox.m +++ b/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];