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/buildrom.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/buildrom.py')
-rwxr-xr-x | scripts/buildrom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buildrom.py b/scripts/buildrom.py index f2228ab9..36de14ec 100755 --- a/scripts/buildrom.py +++ b/scripts/buildrom.py @@ -32,10 +32,10 @@ def main(): # Check if a pci header is present pcidata = ord(data[24:25]) + (ord(data[25:26]) << 8) if pcidata != 0: - data = data[:pcidata + 16] + chr(count/512) + chr(0) + data[pcidata + 18:] + data = data[:pcidata + 16] + chr(int(count/512)) + chr(0) + data[pcidata + 18:] # Fill in size field; clear checksum field - data = data[:2] + chr(count/512) + data[3:6] + "\0" + data[7:] + data = data[:2] + chr(int(count/512)) + data[3:6] + "\0" + data[7:] # Checksum rom newsum = (256 - checksum(data)) & 0xff |