Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix SLI sleep function (fixes #973) #976
Revise implementation of sleep to work correctly with 32-bit signed int; remove duplicity of implementation for int and double arg. This eliminates a warning about narrowing, which is an error in strict C++11.
Also, it seemed that sleep times given as doubles were not handled correctly in the past, e.g. 2.75 s.
This fixes #973.