From bd05b932b167ef3298ab4db67451b17cbcd928f3 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 11 Oct 2008 17:09:26 +0000 Subject: [PATCH] Add shift operator overloads to LSLInteger. If you get error messages when using << and >> in scripts, this will fix it. rm bin/*.dll ; rm bin/ScriptEngines/*.dll ; rm bin/ScriptEngines/*/*.dll then rebuild and reinstall --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 2d79901c1d..14e69012b1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1621,6 +1621,16 @@ namespace OpenSim.Region.ScriptEngine.Shared return i; } + public static LSLInteger operator << (LSLInteger i, int s) + { + return i.value << s; + } + + public static LSLInteger operator >> (LSLInteger i, int s) + { + return i.value >> s; + } + static public implicit operator System.Double(LSLInteger i) { return (double)i.value;