Fix negative integer parsing

This commit is contained in:
Jason Rhinelander 2023-06-02 00:11:28 -03:00
parent a17753fddb
commit e11f5018c2
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def next_byte():
def parse_int():
s = b''
x = next_byte()
while x in b"0123456789":
while x in b"0123456789-":
s += x
x = next_byte()
assert x == b'e' and len(s) > 0, "Invalid integer encoding"