Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-29 01:31:17 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-29 01:31:17 +0400
commit03bb8acaa7be8b1849b4bbee9c213e251cba1f1c (patch)
tree2584281406f212557316156ca4fddc61b42ce2c5 /winsup/cygwin
parent73162dcdd0e2bb323ce93fd58e28044434eadc5e (diff)
* times.cc (time_ms::usecs): Coerce comparison to signed or whole test is a
no-op.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/times.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e0749fb7c..b5e314ad3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-28 Christopher Faylor <cgf@timesys.com>
+
+ * times.cc (time_ms::usecs): Coerce comparison to signed or whole test
+ is a no-op.
+
2005-05-27 Christopher Faylor <cgf@timesys.com>
* cygheap.h: Reference _cygheap_start via .cygheap section.
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 2ac2ee609..708f48df6 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) < 0)
+ if ((int) (now - initime_ms) < 0)
{
inited = 0;
prime ();