From: Michael Osias <mosias@us.ibm.com>

Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL
This commit is contained in:
Justin Clarke Casey
2008-05-09 17:23:27 +00:00
parent 93ec7f0c3c
commit d9dffc4a9a
2 changed files with 32 additions and 0 deletions

View File

@@ -1249,6 +1249,18 @@ namespace OpenSim.Region.ScriptEngine.Common
return new LSLInteger(d);
}
static public bool operator ==(LSLInteger i1, LSLInteger i2)
{
bool ret = i1.value == i2.value;
return ret;
}
static public bool operator !=(LSLInteger i1, LSLInteger i2)
{
bool ret = i1.value != i2.value;
return ret;
}
static public LSLInteger operator &(LSLInteger i1, LSLInteger i2)
{
int ret = i1.value & i2.value;