Skip to content

Commit 80b85d7

Browse files
authored
Update extract_mview.py
Update to make two char into integers as proposed by spAnser in majimboo#5 (comment)
1 parent f5e26c9 commit 80b85d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extract_mview.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def decompress(a, b):
5353
n = r + (r >> 1)
5454
if (n + 1) >= h:
5555
break
56-
m = a[n + 1]
57-
n = a[n]
56+
m = ord(a[n + 1])
57+
n = ord(a[n])
5858
p = (m << 4 | n >> 4) if r & 1 else ((m & 15) << 8 | n)
5959
if p < g:
6060
if 256 > p:
@@ -114,4 +114,4 @@ def mkDIR(dir):
114114
def load(file):
115115
return open(file, "rb")
116116

117-
main(sys.argv[1])
117+
main(sys.argv[1])

0 commit comments

Comments
 (0)