We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18f12ca commit 7327966Copy full SHA for 7327966
1 file changed
extmod/modutimeq.c
@@ -66,7 +66,7 @@ STATIC bool time_less_than(struct qentry *item, struct qentry *parent) {
66
if ((mp_int_t)res < 0) {
67
res += MODULO;
68
}
69
- return res < (MODULO / 2);
+ return res && res < (MODULO / 2);
70
71
72
STATIC mp_obj_t utimeq_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
0 commit comments