Skip to content

Commit b7eb0bd

Browse files
committed
Handle negative numbers smaller than -9
1 parent e95d33b commit b7eb0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def from_item(item: StackItem) -> "PointerOffset":
6464
if txt[0] == "+":
6565
txt = txt[1:]
6666
if txt[0] == "-":
67-
n = (txt[1],)
67+
n = (txt[1:],)
6868
else:
6969
p = (txt,)
7070
return PointerOffset(i, p, n)

0 commit comments

Comments
 (0)