nga-python: raise IndexError on invalid fetch address (#31)

FossilOrigin-Name: 40e85d0ae3d2223e1b465f782f8e4c4b93bc7c1ffad6615f569ebc6a357482e1
This commit is contained in:
crc 2020-12-23 12:21:35 +00:00
parent 84f5134687
commit 58e289d1fc

View file

@ -286,7 +286,7 @@ class Retro:
elif target == -5:
self.stack.push(170141183460469231731687303715884105727)
else:
self.stack.push(0)
raise IndexError
def i_store(self):
mi = self.stack.pop()