mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2024-11-21 14:18:57 -07:00
LL fixed the overflow in llAbs() in Mono
This commit is contained in:
parent
ea2518b37d
commit
28b42e7c6b
3 changed files with 1 additions and 6 deletions
|
@ -967,10 +967,7 @@ def llAbs(i):
|
|||
i = fi(i)
|
||||
if i != -2147483648:
|
||||
return abs(i)
|
||||
if lslcommon.LSO:
|
||||
return i
|
||||
# Mono raises an OverflowException in this case.
|
||||
raise ELSLCantCompute
|
||||
|
||||
def llAcos(f):
|
||||
f = ff(f)
|
||||
|
|
|
@ -22,7 +22,6 @@ default
|
|||
, llGetDisplayName(TEXTURE_BLANK)
|
||||
, llGetEnv("estate_name")
|
||||
, llXorBase64Strings("++++", "?")
|
||||
, llAbs(-2147483648)
|
||||
, llGetStatus(STATUS_DIE_AT_EDGE)
|
||||
, llGetStatus(STATUS_DIE_AT_NO_ENTRY)
|
||||
]);
|
||||
|
|
|
@ -20,7 +20,6 @@ default
|
|||
, llGetDisplayName("5748decc-f629-461c-9a36-a35a221fe21f")
|
||||
, llGetEnv("estate_name")
|
||||
, llXorBase64Strings("++++", "?")
|
||||
, llAbs(((integer)-2147483648))
|
||||
, llGetStatus(128)
|
||||
, llGetStatus(2048)
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue