Skip to content
Snippets Groups Projects
Commit 7f6d2868 authored by Taco Hoekwater's avatar Taco Hoekwater
Browse files

cast to unsigned should work everywhere

parent 7b0d03b9
Branches
Tags
No related merge requests found
......@@ -639,7 +639,7 @@ static int ex_sleep(lua_State * L)
#ifdef WIN32
Sleep(1e3 * interval / units);
#else /* assumes posix or bsd */
usleep((1e6 * interval / units));
usleep((unsigned)(1e6 * interval / units));
#endif
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment