From 1d498314f0fc9e941d2a10f07c86f6f8ca9ac180 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 29 Jun 2014 08:31:21 -0400 Subject: Fix uw_Basis_lt_time --- src/c/urweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c') diff --git a/src/c/urweb.c b/src/c/urweb.c index 86cd2b8b..a9e722ad 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -4271,7 +4271,7 @@ uw_Basis_bool uw_Basis_eq_time(uw_context ctx, uw_Basis_time t1, uw_Basis_time t } 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) { -- cgit v1.2.3