From 559636c7c4819e73fa4fb7903c87436625d57828 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:47:55 +0000 Subject: [PATCH] Use floor division More direct than using rounding of the jnt function. --- pefile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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