From 5a8bab3a01be5381ee7252a5497d2dcf56e2f16b Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 22 Feb 2023 23:36:30 +0000 Subject: [PATCH] Fix negative ints --- torrent-tiny | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent-tiny b/torrent-tiny index b707269..04b45b7 100755 --- a/torrent-tiny +++ b/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