mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user