summaryrefslogtreecommitdiff
path: root/src/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
commit1d498314f0fc9e941d2a10f07c86f6f8ca9ac180 (patch)
tree0e9fd4c511ee93df619ce498fa929ad96ca08a4a /src/c
parent0a66a4a39c9725434e5c9cdf38902092c2da7849 (diff)
Fix uw_Basis_lt_time
Diffstat (limited to 'src/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) {