mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix llAbs corner case.
As an exception, llAbs(-2147483648) equals -2147483648.
This commit is contained in:
parent
3a91f04cb5
commit
7f8cb4ec58
2 changed files with 3 additions and 2 deletions
|
@ -821,7 +821,7 @@ def reduce(t):
|
|||
|
||||
def llAbs(i):
|
||||
assert isinteger(i)
|
||||
return abs(i)
|
||||
return abs(i) if i != -2147483648 else i
|
||||
|
||||
def llAcos(f):
|
||||
assert isfloat(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue