From 9e0ae86d068c9a6a47c466c4401a3983de5f0e40 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 25 Aug 2000 21:31:57 +0000 Subject: [PATCH] Use int instead of CHAR/WCHAR in va_arg() (fixes gcc-current compile problem). --- misc/wsprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/wsprintf.c b/misc/wsprintf.c index ad70f3611d0..958f4b04f39 100644 --- a/misc/wsprintf.c +++ b/misc/wsprintf.c @@ -264,9 +264,9 @@ static WPRINTF_DATA WPRINTF_ExtractVAPtr( WPRINTF_FORMAT *format, va_list* args switch(format->type) { case WPR_WCHAR: - result.wchar_view = va_arg( *args, WCHAR ); break; + result.wchar_view = (WCHAR)va_arg( *args, int );break; case WPR_CHAR: - result.char_view = va_arg( *args, CHAR ); break; + result.char_view = (CHAR)va_arg( *args, int ); break; case WPR_STRING: result.lpcstr_view = va_arg( *args, LPCSTR); break; case WPR_WSTRING: