diff options
author | Melanie Thielker | 2008-10-11 17:09:26 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-11 17:09:26 +0000 |
commit | bd05b932b167ef3298ab4db67451b17cbcd928f3 (patch) | |
tree | d9c386594f99e076680c861bb3cdd7044409ff87 /OpenSim/Region/ScriptEngine | |
parent | - Patching a symptom of the failed WP start. We really need to find the reason (diff) | |
download | opensim-SC-bd05b932b167ef3298ab4db67451b17cbcd928f3.zip opensim-SC-bd05b932b167ef3298ab4db67451b17cbcd928f3.tar.gz opensim-SC-bd05b932b167ef3298ab4db67451b17cbcd928f3.tar.bz2 opensim-SC-bd05b932b167ef3298ab4db67451b17cbcd928f3.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 2d79901..14e6901 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 | |||
1621 | return i; | 1621 | return i; |
1622 | } | 1622 | } |
1623 | 1623 | ||
1624 | public static LSLInteger operator << (LSLInteger i, int s) | ||
1625 | { | ||
1626 | return i.value << s; | ||
1627 | } | ||
1628 | |||
1629 | public static LSLInteger operator >> (LSLInteger i, int s) | ||
1630 | { | ||
1631 | return i.value >> s; | ||
1632 | } | ||
1633 | |||
1624 | static public implicit operator System.Double(LSLInteger i) | 1634 | static public implicit operator System.Double(LSLInteger i) |
1625 | { | 1635 | { |
1626 | return (double)i.value; | 1636 | return (double)i.value; |