Mercurial > hg > octave-nkf
diff src/utils.cc @ 4093:5a82e874999b
[project @ 2002-10-08 23:48:45 by jwe]
author | jwe |
---|---|
date | Tue, 08 Oct 2002 23:48:46 +0000 |
parents | ddc722b38e87 |
children | 0435429c1050 |
line wrap: on
line diff
--- a/src/utils.cc +++ b/src/utils.cc @@ -756,9 +756,11 @@ { double t; - unsigned int usec = modf (seconds, &t) * 1000000; + unsigned int usec + = static_cast <unsigned int> (modf (seconds, &t) * 1000000); - unsigned int sec = (t > UINT_MAX) ? UINT_MAX : (unsigned int) t; + unsigned int sec + = (t > UINT_MAX) ? UINT_MAX : static_cast <unsigned int> (t); octave_sleep (sec); octave_usleep (usec);