Skip to content

Commit

Permalink
Use floor division
Browse files Browse the repository at this point in the history
More direct than using rounding of the jnt function.
  • Loading branch information
j-t-1 authored Nov 27, 2024
1 parent 4b3b1e2 commit 559636c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def cache_adjust_SectionAlignment(val, section_alignment, file_alignment):
# section_alignment = 0x80

if section_alignment and val % section_alignment:
return section_alignment * (int(val / section_alignment))
return section_alignment * (val // section_alignment)
return val


Expand Down

0 comments on commit 559636c

Please sign in to comment.