From e3864de621a595a5710236d753de044c9152b19b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sat, 1 Nov 2008 22:18:26 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2521 * Fix not tests in LSL which require implicit casting (see mantis for an example) --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 36320d2..f3adb22 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1610,6 +1610,11 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLInteger(-i.value); } + static public LSLInteger operator ~(LSLInteger i) + { + return new LSLInteger(~i.value); + } + public override bool Equals(Object o) { if (!(o is LSLInteger)) -- cgit v1.1