Browse Source

Fix negative ints

master
JustAnotherArchivist 1 year ago
parent
commit
5a8bab3a01
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny View File

@@ -57,7 +57,7 @@ def read_int(fp, c = b'', end = b'e'):
c = fp.read(1)
if c == end:
break
elif c in b'0123456789':
elif c in b'-0123456789':
i += c
else:
raise ValueError


Loading…
Cancel
Save