From 64fce21c93ee01c9a5f875a3cb1793a6fad29b96 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 16 Nov 2013 01:28:41 -0800 Subject: [PATCH] Mac screensaver: Fix compiler warnings --- clientscr/Mac_Saver_ModuleView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientscr/Mac_Saver_ModuleView.m b/clientscr/Mac_Saver_ModuleView.m index 86d03e9fed..97f0085893 100644 --- a/clientscr/Mac_Saver_ModuleView.m +++ b/clientscr/Mac_Saver_ModuleView.m @@ -609,7 +609,7 @@ static int compareOSVersionTo(int toMajor, int toMinor) { err = Gestalt(gestaltSystemVersionMajor, &major); if (err != noErr) { - fprintf(stderr, "Gestalt(gestaltSystemVersionMajor) returned error %d\n", err); + fprintf(stderr, "Gestalt(gestaltSystemVersionMajor) returned error %ld\n", (long)err); fflush(stderr); return 0; } @@ -617,7 +617,7 @@ static int compareOSVersionTo(int toMajor, int toMinor) { if (major > toMajor) return 1; err = Gestalt(gestaltSystemVersionMinor, &minor); if (err != noErr) { - fprintf(stderr, "Gestalt(gestaltSystemVersionMinor) returned error %d\n", err); + fprintf(stderr, "Gestalt(gestaltSystemVersionMinor) returned error %ld\n", (long)err); fflush(stderr); return 0; }