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 reinstall0.6.0-stable
parent
628e3a9553
commit
bd05b932b1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue