mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Activate 'optimize' option by default in lsloutput.
Failure to do so caused a regression test to fail. Harmless, because that option is overriden by main, but fixed.
Bug was introduced in commit 397dc89
, with the requirement that the 'optimize' option be active for output optimizations to be applied, by forgetting to update the function header to add that default option.
This commit is contained in:
parent
2f4f403535
commit
7fa691ead7
1 changed files with 2 additions and 1 deletions
|
@ -432,7 +432,8 @@ class outscript(object):
|
|||
|
||||
assert False, "Internal error: node type not handled: " + nt # pragma: no cover
|
||||
|
||||
def output(self, treesymtab, options = ('optsigns','optfloats','warntabs')):
|
||||
def output(self, treesymtab, options = ('optimize',
|
||||
'optsigns','optfloats','warntabs')):
|
||||
# Build a sorted list of dict entries
|
||||
self.tree, self.symtab = treesymtab
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue