Skip to content

Commit

Permalink
Fix overflow issue in naturalsize with np.int32 input (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 6, 2024
2 parents ae62162 + a178851 commit 6a70582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/humanize/filesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ def naturalsize(
if abs_bytes < unit:
break

ret: str = format % (base * bytes_ / unit) + s
ret: str = format % (base * (bytes_ / unit)) + s
return ret

0 comments on commit 6a70582

Please sign in to comment.