diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-07-21 17:45:39 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-07-23 11:22:11 +0200 |
commit | f71727300287eef4cffdcee9ffb3d7b4b45ff732 (patch) | |
tree | e6b227f24107c339742bc8dbb44ea57f29844a58 | |
parent | f0f578abeea644a8a2ccc9522b0952eab076e2ed (diff) |
codegen: Check we don't pop too many indexes
-rw-r--r-- | python_modules/codegen.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python_modules/codegen.py b/python_modules/codegen.py index 02ffdb9..c470988 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -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: |