Skip to content

Commit

Permalink
fix(range): fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Sep 28, 2024
1 parent a6e61c9 commit aca732b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylib/builtins/private/mathutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
func iPosCeil*[I: SomeInteger](x: float): I =
## I(ceil(x)) if x > 0 else 0
if x > 0:
let more = (x - I(x) > 0)
let more = (x - float(I(x)) > 0)
I(x) + I(more)
else: I(0)

Expand Down

0 comments on commit aca732b

Please sign in to comment.