mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user