start fixing binary data

--HG--
branch : pmacs2
This commit is contained in:
~d6 2020-09-02 10:52:01 -04:00
parent 2c52dd6a1a
commit b8c4156eb2
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ class Binary32Buffer(FileBuffer):
while j < self.numgroups * self.groupsize and i + j < len(data):
bytes = []
for c in data[i + j:i + j + self.groupsize]:
bytes.append(string.hexdigits[ord(c) / 16] + string.hexdigits[ord(c) % 16])
bytes.append(string.hexdigits[c // 16] + string.hexdigits[c % 16])
groups.append(bytepad.join(bytes))
j += self.groupsize
lines.append(grouppad.join(groups))