Forgot to truncate llSqrt to F32.

This commit is contained in:
Sei Lisa 2015-06-16 04:41:36 +02:00
parent bfabcd16db
commit e35431cecf

View file

@ -1515,7 +1515,7 @@ def llSqrt(f):
if f < 0.0: if f < 0.0:
return NaN return NaN
# LSL and Python both produce -0.0 when the input is -0.0. # LSL and Python both produce -0.0 when the input is -0.0.
return math.sqrt(f) return F32(math.sqrt(f))
def llStringLength(s): def llStringLength(s):
assert isstring(s) assert isstring(s)