diff options
author | Johannes Krampf <johannes.krampf@googlemail.com> | 2014-01-12 11:19:22 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-01-20 12:42:43 -0500 |
commit | 9d7d044d693dbefabf943b07cc29584f5cc4297b (patch) | |
tree | 615b58c07fd97c3a4cd88d9201b58e3e3472210a /scripts/layoutrom.py | |
parent | 064fd069ef88aebe0fdf9850dc35bcffcb616763 (diff) | |
download | seabios-9d7d044d693dbefabf943b07cc29584f5cc4297b.tar.gz |
build: Be explicit that we want integers when dividing for python3 compat.
Signed-off-by: Johannes Krampf <johannes.krampf@googlemail.com>
Diffstat (limited to 'scripts/layoutrom.py')
-rwxr-xr-x | scripts/layoutrom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index c0b325d3..2f2b1890 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -46,7 +46,7 @@ def setSectionsStart(sections, endaddr, minalign=1, segoffset=0): if section.align > minalign: minalign = section.align totspace = alignpos(totspace, section.align) + section.size - startaddr = (endaddr - totspace) / minalign * minalign + startaddr = int((endaddr - totspace) / minalign) * minalign curaddr = startaddr for section in sections: curaddr = alignpos(curaddr, section.align) @@ -359,7 +359,7 @@ def writeLinkerScripts(li, out16, out32seg, out32flat): %s } """ % (li.zonelow_base, - li.zonelow_base / 16, + int(li.zonelow_base / 16), li.sec16_start - BUILD_BIOS_ADDR, outRelSections(li.sections16, 'code16_start', useseg=1)) outfile = open(out16, 'wb') |