From 7ea6ef0d5a35a769b6f8e64772183c48ce6e1751 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 5 Jul 2010 12:32:44 -0700 Subject: [PATCH] Fixed compile warning with latest mingw32 compiler --- src/thread/win32/SDL_syssem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thread/win32/SDL_syssem.c b/src/thread/win32/SDL_syssem.c index 67551e128..4fcb8c6e1 100644 --- a/src/thread/win32/SDL_syssem.c +++ b/src/thread/win32/SDL_syssem.c @@ -39,7 +39,7 @@ struct SDL_semaphore #else HANDLE id; #endif - Uint32 volatile count; + LONG volatile count; }; @@ -143,7 +143,7 @@ SDL_SemValue(SDL_sem * sem) SDL_SetError("Passed a NULL sem"); return 0; } - return sem->count; + return (Uint32)sem->count; } int