Add an override for the % operator.

Fixes Mantis #3157
This commit is contained in:
idb
2009-02-14 18:09:08 +00:00
parent 622e7b4c7d
commit 67b0ba71da

View File

@@ -1692,6 +1692,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
return ret;
}
static public LSLInteger operator %(LSLInteger i1, LSLInteger i2)
{
int ret = i1.value % i2.value;
return ret;
}
static public LSLInteger operator |(LSLInteger i1, LSLInteger i2)
{
int ret = i1.value | i2.value;