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
0.6.0-stable
Melanie Thielker 2008-10-11 17:09:26 +00:00
parent 628e3a9553
commit bd05b932b1
1 changed files with 10 additions and 0 deletions

View File

@ -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;