codegen: Check we don't pop too many indexes

This commit is contained in:
Frediano Ziglio 2015-07-21 17:45:39 +01:00 committed by Christophe Fergeau
parent f0f578abee
commit f717273002

View File

@ -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: