Skip to content

Commit 6e8d9f0

Browse files
author
Cruz Monrreal
authored
Merge pull request #8270 from theotherjimmy/fix-7392
Tools: Ensure vtor reserved bits are all 0
2 parents f9e5167 + 7a97f48 commit 6e8d9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def _make_header_region(self, start, header_format, offset=None):
685685
size = self._header_size(header_format)
686686
region = Region("header", start, size, False, None)
687687
start += size
688-
start = ((start + 7) // 8) * 8
688+
start = ((start + (2**7 - 1)) // (2**7)) * (2**7)
689689
return (start, region)
690690

691691
@staticmethod

0 commit comments

Comments
 (0)