From 11a3fbf4aa058ae0ec50a2aa0bea12e33e96b14b Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Sun, 27 Jul 2008 07:09:33 +0000 Subject: Conversion from double to LSLInteger needs to be explicit. Fix issue 1826. --- OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 2 +- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index d5211f5..5607706 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1286,7 +1286,7 @@ namespace OpenSim.Region.ScriptEngine.Common return new LSLInteger(u); } - static public implicit operator LSLInteger(double d) + static public explicit operator LSLInteger(double d) { return new LSLInteger(d); } diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 77bb426..ea2a551 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1314,7 +1314,7 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLInteger(u); } - static public implicit operator LSLInteger(double d) + static public explicit operator LSLInteger(double d) { return new LSLInteger(d); } -- cgit v1.1