From 026dbc89bfff64ce0f89b780843a9ffc013600b9 Mon Sep 17 00:00:00 2001 From: Jeffrey Ryan Date: Mon, 23 May 2022 02:07:56 -0500 Subject: Windows build: fix narrowing error for WaitForSingleObject `WaitForSingleObject` returns a `DWORD`, not an int, so assign `retval` as such and it should fix the error. --- contrib/epee/include/console_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/epee/include') diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 219b593b0..7115fce0c 100644 --- a/contrib/epee/include/console_handler.h +++ b/contrib/epee/include/console_handler.h @@ -196,7 +196,7 @@ namespace epee if (m_read_status == state_cancelled) return false; - int retval = ::WaitForSingleObject(::GetStdHandle(STD_INPUT_HANDLE), 100); + DWORD retval = ::WaitForSingleObject(::GetStdHandle(STD_INPUT_HANDLE), 100); switch (retval) { case WAIT_FAILED: -- cgit v1.2.3