summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-06-29 08:31:21 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2014-06-29 08:31:21 -0400
commitabb214d29dd8088b5dad7b61aefb7db24fa787ac (patch)
tree0e9fd4c511ee93df619ce498fa929ad96ca08a4a /src/c/urweb.c
parent362a3c350554cc0deee1f05a4e005c1d63bcd526 (diff)
Fix uw_Basis_lt_time
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c2
1 files changed, 1 insertions, 1 deletions
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) {