[Quickfix-developers] process_sleep fix for MSVC
Brought to you by:
orenmnero
From: Brendan B. B. <br...@ka...> - 2004-10-18 21:38:34
|
Hi, I think that in process_sleep( double s ) #ifdef _MSC_VER Sleep( (long) s * 1000 ); #else ... #endif should instead be: Sleep( (long) (s * 1000.0) ); as VC++ 6.0 appears to compile the former as long * 1000 which for say s = 0.5 results in 0 instead of 500. Regards, Brendan |