From aba81b16e17d8dbd3081d20e062dbc8f9e2f783b Mon Sep 17 00:00:00 2001 From: Esa Ilari Vuokko Date: Sun, 13 Aug 2006 11:10:29 +0000 Subject: [PATCH] Remove few format-warnings by adding casts --- rts/win32/AsyncIO.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rts/win32/AsyncIO.c b/rts/win32/AsyncIO.c index 7bcf571..2ff92d9 100644 --- a/rts/win32/AsyncIO.c +++ b/rts/win32/AsyncIO.c @@ -161,7 +161,7 @@ startupAsyncIO() completed_hw = 0; if ( !(completed_table_sema = CreateSemaphore (NULL, MAX_REQUESTS, MAX_REQUESTS, NULL)) ) { DWORD rc = GetLastError(); - fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", rc); + fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", (int)rc); fflush(stderr); } @@ -300,7 +300,7 @@ start: /* Signal that there's completed table slots available */ if ( !ReleaseSemaphore(completed_table_sema, 1, NULL) ) { DWORD dw = GetLastError(); - fprintf(stderr, "awaitRequests: failed to signal semaphore (error code=0x%x)\n", dw); + fprintf(stderr, "awaitRequests: failed to signal semaphore (error code=0x%x)\n", (int)dw); fflush(stderr); } } -- 1.7.10.4