Skip to content

Commit

Permalink
Fix overflow issue in naturalsize with np.int32 input
Browse files Browse the repository at this point in the history
  • Loading branch information
Toprak2 committed Nov 6, 2024
1 parent ae62162 commit a178851
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 a178851

Please sign in to comment.