mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 22:55:35 +00:00
codegen: Check we don't pop too many indexes
This commit is contained in:
parent
f0f578abee
commit
f717273002
@ -357,6 +357,7 @@ class CodeWriter:
|
||||
return index
|
||||
|
||||
def push_index(self):
|
||||
assert self.current_index > 0
|
||||
self.current_index = self.current_index - 1
|
||||
|
||||
class Index:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user