From d9dffc4a9a1e561921013aa076eee70faa9b7b92 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 9 May 2008 17:23:27 +0000 Subject: From: Michael Osias <mosias@us.ibm.com> Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL --- OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 09ab5d4..c904b1d 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1249,6 +1249,18 @@ namespace OpenSim.Region.ScriptEngine.Common return new LSLInteger(d); } + static public bool operator ==(LSLInteger i1, LSLInteger i2) + { + bool ret = i1.value == i2.value; + return ret; + } + + static public bool operator !=(LSLInteger i1, LSLInteger i2) + { + bool ret = i1.value != i2.value; + return ret; + } + static public LSLInteger operator &(LSLInteger i1, LSLInteger i2) { int ret = i1.value & i2.value; -- cgit v1.1