瀏覽代碼

Fix negative ints

master
JustAnotherArchivist 1 年之前
父節點
當前提交
5a8bab3a01
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny 查看文件

@@ -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…
取消
儲存