From abb214d29dd8088b5dad7b61aefb7db24fa787ac 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') 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