Fix llAbs corner case.

As an exception, llAbs(-2147483648) equals -2147483648.
This commit is contained in:
Sei Lisa 2017-01-18 00:50:59 +01:00
parent 3a91f04cb5
commit 7f8cb4ec58
2 changed files with 3 additions and 2 deletions

View file

@ -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)