aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorJeffrey Ryan <jeffreyryan@tutanota.com>2022-05-23 02:07:56 -0500
committerJeffrey Ryan <jeffreyryan@tutanota.com>2022-05-23 02:07:56 -0500
commit026dbc89bfff64ce0f89b780843a9ffc013600b9 (patch)
tree8a7e1481bd89416ca89fed7889d46c37fd93ad57 /contrib/epee/include
parentMerge pull request #8315 (diff)
downloadmonero-026dbc89bfff64ce0f89b780843a9ffc013600b9.tar.xz
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.
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/console_handler.h2
1 files changed, 1 insertions, 1 deletions
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: