From e35431cecff5ce736be71927443db4303ff87c8e Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Tue, 16 Jun 2015 04:41:36 +0200 Subject: [PATCH] Forgot to truncate llSqrt to F32. --- lslopt/lslbasefuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index c345628..f798af2 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1515,7 +1515,7 @@ def llSqrt(f): if f < 0.0: return NaN # 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): assert isstring(s)