summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sleep/src
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-sleep/src')
-rw-r--r--mrbgems/mruby-sleep/src/mrb_sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sleep/src/mrb_sleep.c b/mrbgems/mruby-sleep/src/mrb_sleep.c
index ce643cf12..0428f29eb 100644
--- a/mrbgems/mruby-sleep/src/mrb_sleep.c
+++ b/mrbgems/mruby-sleep/src/mrb_sleep.c
@@ -29,7 +29,7 @@
#ifdef _WIN32
#include <windows.h>
#define sleep(x) Sleep(x * 1000)
- #define usleep(x) Sleep(((x)<1000) ? 1 : ((x)/1000))
+ #define usleep(x) Sleep((DWORD)((x)<1000) ? 1 : ((x)/1000))
#else
#include <unistd.h>
#include <sys/time.h>