mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix bug where negative signs of global integers weren't being output.
This commit is contained in:
parent
b62fb9a808
commit
0a0e5926d5
1 changed files with 1 additions and 1 deletions
|
@ -1451,7 +1451,7 @@ class parser(object):
|
|||
if tok[0] not in ('INTEGER_VALUE', 'FLOAT_VALUE'):
|
||||
raise EParseSyntax(self)
|
||||
value = tok[1]
|
||||
if neg and (tok[0] != 'INTEGER_VALUE' or value == -2147483648):
|
||||
if neg and (tok[0] != 'INTEGER_VALUE' or value != -2147483648):
|
||||
value = -value
|
||||
return {'nt':'CONST', 't':'float' if tok[0] == 'FLOAT_VALUE' else 'integer', 'value':value}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue