diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index c630c27ce9..be790d6f3c 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1281,6 +1281,11 @@ namespace OpenSim.Region.ScriptEngine.Common return new LSLInteger(u); } + static public implicit operator LSLInteger(double d) + { + return new LSLInteger(d); + } + static public bool operator ==(LSLInteger i1, LSLInteger i2) { bool ret = i1.value == i2.value; diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index f71d5840ab..0cddf369f9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1309,6 +1309,11 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLInteger(u); } + static public implicit operator LSLInteger(double d) + { + return new LSLInteger(d); + } + static public bool operator ==(LSLInteger i1, LSLInteger i2) { bool ret = i1.value == i2.value;