Add an override for the % operator.

Fixes Mantis #3157
0.6.3-post-fixes
idb 2009-02-14 18:09:08 +00:00
parent 622e7b4c7d
commit 67b0ba71da
1 changed files with 6 additions and 0 deletions

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;