changeset 2034:1d36654c2d21

Fix uw_Basis_lt_time
author Adam Chlipala <adam@chlipala.net>
date Sun, 29 Jun 2014 08:31:21 -0400
parents ea0ecd5fa9df
children a3435112b83e
files src/c/urweb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/urweb.c	Fri Jun 27 14:39:31 2014 -0400
+++ b/src/c/urweb.c	Sun Jun 29 08:31:21 2014 -0400
@@ -4271,7 +4271,7 @@
 }
 
 uw_Basis_bool uw_Basis_lt_time(uw_context ctx, uw_Basis_time t1, uw_Basis_time t2) {
-  return !!(t1.seconds < t2.seconds || t1.microseconds < t2.microseconds);
+  return !!(t1.seconds < t2.seconds || (t1.seconds == t2.seconds && t1.microseconds < t2.microseconds));
 }
 
 uw_Basis_bool uw_Basis_le_time(uw_context ctx, uw_Basis_time t1, uw_Basis_time t2) {