diff --git a/README b/README index 5c471f2..0f749a7 100644 --- a/README +++ b/README @@ -102,5 +102,6 @@ app store fees, hardware). Thanks go out to my current and past patrons: - Kiyoshi YONEDA -- Rick - Krinkleneck +- Rick +- Scott MCCallum diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ba416d9..aa783e4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -33,3 +33,7 @@ Unix - io:float-operation (now float:operation) - io:socket-operation (now socket:operation) +Python + +- fixed a bug in the stack depth reporting (thanks to Scott McCallum for + noticing this) diff --git a/vm/nga-python/retro.py b/vm/nga-python/retro.py index b210a1f..4698c5a 100755 --- a/vm/nga-python/retro.py +++ b/vm/nga-python/retro.py @@ -142,7 +142,7 @@ def i_gt(): def i_fe(): global ip, memory, stack, address - if stack[-1] == -1: stack[-1] = len(stack) + if stack[-1] == -1: stack[-1] = len(stack) - 1 elif stack[-1] == -2: stack[-1] = len(address) elif stack[-1] == -3: stack[-1] = len(memory) elif stack[-1] == -4: stack[-1] = -2147483648