Fix llAbs raising a run-time exception in Mono.

llAbs(-2147483648) raises this:
 System.OverflowException: Value is too small.
  at System.Math.Abs (Int32 value) [0x00000] in <filename unknown>:0
  at LindenLab.SecondLife.Library.llAbs (Int32 i) [0x00000] in <filename unknown>:0

So it's actually not computable. In LSO it returns -2147483648, though.
This commit is contained in:
Sei Lisa 2017-01-22 19:45:14 +01:00
parent ac775c9999
commit 1262934baf
2 changed files with 12 additions and 7 deletions

View file

@ -30,11 +30,6 @@ class Quaternion(tuple):
def __repr__(self):
return 'Quaternion(' + super(Quaternion, self).__repr__() + ')'
# We don't yet support the LSO string model (arbitrary zero-terminated byte
# sequences). This exception is triggered to report attempts at using it.
class ELSONotSupported(Exception):
pass
# Recognized: 3763, 6466, 6495
# BUG-3763 affected llXorBase64 (see lslbasefuncs.py). It's been fixed.
# BUG-6466 is about some valid numbers in JSON not being accepted. It's fixed.