Skip to content

Commit

Permalink
Windows build: fix narrowing error for WaitForSingleObject
Browse files Browse the repository at this point in the history
`WaitForSingleObject` returns a `DWORD`, not an int, so assign `retval` as such and it should fix the error.
  • Loading branch information
Jeffrey Ryan committed May 23, 2022
1 parent 6e60919 commit 026dbc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/epee/include/console_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 026dbc8

Please sign in to comment.