mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-04 12:14:36 -07:00
Oops, the operator is !, not -
This commit is contained in:
parent
05d46e9ac3
commit
0b55f6e64d
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ class foldconst(object):
|
||||||
and child[1]['t'] in ('float', 'integer'):
|
and child[1]['t'] in ('float', 'integer'):
|
||||||
SEF = 'SEF' in node
|
SEF = 'SEF' in node
|
||||||
node['nt'] = {'<=':'>', '>=':'<', '!=':'=='}[nt]
|
node['nt'] = {'<=':'>', '>=':'<', '!=':'=='}[nt]
|
||||||
node = parent[index] = {'nt':'NEG', 't':node['t'], 'ch':[node]}
|
node = parent[index] = {'nt':'!', 't':node['t'], 'ch':[node]}
|
||||||
if SEF:
|
if SEF:
|
||||||
node['SEF'] = True
|
node['SEF'] = True
|
||||||
# Fold the new node
|
# Fold the new node
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue