From ba447399f80ef257b9cafe40af7b63cf73b0a753 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 4 Aug 2017 17:44:27 -0700 Subject: [PATCH] SCP: Cleanup compiler warnings (Dave Bryan) --- sim_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim_console.c b/sim_console.c index a49a1302..4cbe6e0a 100644 --- a/sim_console.c +++ b/sim_console.c @@ -3231,10 +3231,10 @@ if ((sim_ttisatty ()) && (std_input) && /* If Not Background process? */ (std_input != INVALID_HANDLE_VALUE)) { if (!GetConsoleMode(std_input, &saved_input_mode)) - return sim_messagef (SCPE_TTYERR, "GetConsoleMode() error: 0x%X\n", GetLastError ()); + return sim_messagef (SCPE_TTYERR, "GetConsoleMode() error: 0x%X\n", (unsigned int)GetLastError ()); if ((!SetConsoleMode(std_input, ENABLE_VIRTUAL_TERMINAL_INPUT)) && (!SetConsoleMode(std_input, RAW_MODE))) - return sim_messagef (SCPE_TTYERR, "SetConsoleMode() error: 0x%X\n", GetLastError ()); + return sim_messagef (SCPE_TTYERR, "SetConsoleMode() error: 0x%X\n", (unsigned int)GetLastError ()); } if ((std_output) && /* If Not Background process? */ (std_output != INVALID_HANDLE_VALUE)) {