mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00: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)
|
i = fi(i)
|
||||||
if i != -2147483648:
|
if i != -2147483648:
|
||||||
return abs(i)
|
return abs(i)
|
||||||
if lslcommon.LSO:
|
|
||||||
return i
|
return i
|
||||||
# Mono raises an OverflowException in this case.
|
|
||||||
raise ELSLCantCompute
|
|
||||||
|
|
||||||
def llAcos(f):
|
def llAcos(f):
|
||||||
f = ff(f)
|
f = ff(f)
|
||||||
|
|
|
@ -22,7 +22,6 @@ default
|
||||||
, llGetDisplayName(TEXTURE_BLANK)
|
, llGetDisplayName(TEXTURE_BLANK)
|
||||||
, llGetEnv("estate_name")
|
, llGetEnv("estate_name")
|
||||||
, llXorBase64Strings("++++", "?")
|
, llXorBase64Strings("++++", "?")
|
||||||
, llAbs(-2147483648)
|
|
||||||
, llGetStatus(STATUS_DIE_AT_EDGE)
|
, llGetStatus(STATUS_DIE_AT_EDGE)
|
||||||
, llGetStatus(STATUS_DIE_AT_NO_ENTRY)
|
, llGetStatus(STATUS_DIE_AT_NO_ENTRY)
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -20,7 +20,6 @@ default
|
||||||
, llGetDisplayName("5748decc-f629-461c-9a36-a35a221fe21f")
|
, llGetDisplayName("5748decc-f629-461c-9a36-a35a221fe21f")
|
||||||
, llGetEnv("estate_name")
|
, llGetEnv("estate_name")
|
||||||
, llXorBase64Strings("++++", "?")
|
, llXorBase64Strings("++++", "?")
|
||||||
, llAbs(((integer)-2147483648))
|
|
||||||
, llGetStatus(128)
|
, llGetStatus(128)
|
||||||
, llGetStatus(2048)
|
, llGetStatus(2048)
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue