mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Fix bug in inlining of empty for() initializer
It was causing an exception. Fixed now. Thanks to Cindy Reynaud for reporting the problem and sending a backtrace.
This commit is contained in:
parent
65f217afa8
commit
128005e889
4 changed files with 27 additions and 2 deletions
|
@ -427,9 +427,8 @@ class inliner(object):
|
|||
del child[2]
|
||||
del child[0]
|
||||
child[1].ch.append(nr(nt='JUMP', t=None, name=lbl, scope=scope))
|
||||
fns.extend(self.RecurseExpression(child, 0, scope))
|
||||
fns = self.RecurseExpression(child, 0, scope)
|
||||
self.RecurseSingleStatement(child, 1, scope)
|
||||
#assert False, parent[index]
|
||||
|
||||
else:
|
||||
assert False, u"Unexpected node type: %s" % nt.decode('utf8')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue