diff --git a/pefile.py b/pefile.py index f804678..63f1295 100644 --- a/pefile.py +++ b/pefile.py @@ -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