Skip to content

Commit 26fe085

Browse files
committed
the correct type is int, which doesn't have any comparison problems
1 parent 6e553e7 commit 26fe085

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared-bindings/bitmapfilter/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
//|
9191

9292

93-
STATIC mp_float_t get_m(mp_obj_t mul_obj, mp_float_t sum) {
93+
STATIC mp_float_t get_m(mp_obj_t mul_obj, int sum) {
9494
return mul_obj != mp_const_none ? mp_obj_get_float(mul_obj) : sum ? 1 / (mp_float_t)sum : 1;
9595
}
9696

0 commit comments

Comments
 (0)