aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/times.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-03-27 23:33:30 +0000
committerChristopher Faylor <me@cgf.cx>2005-03-27 23:33:30 +0000
commit491110627f5515bf3d1ecdb42b1dabf7c53f116b (patch)
tree1409694d9daf0a978602c523b77a5b8b5c3400c6 /winsup/cygwin/times.cc
parentc4a2d2f3e1e38585685c1bf1c50835fd3424af38 (diff)
downloadnewlib-491110627f5515bf3d1ecdb42b1dabf7c53f116b.zip
newlib-491110627f5515bf3d1ecdb42b1dabf7c53f116b.tar.gz
newlib-491110627f5515bf3d1ecdb42b1dabf7c53f116b.tar.bz2
* times.cc (hires_ms::usecs): Compare the difference.
* hires.h: Add parentheses to HIRES_DELAY_MAX.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 4c0909e..2ac2ee6 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -597,7 +597,7 @@ hires_ms::usecs (bool justdelta)
if (!minperiod) /* NO_COPY variable */
prime ();
DWORD now = timeGetTime ();
- if (now < initime_ms)
+ if ((now - initime_ms) < 0)
{
inited = 0;
prime ();