Implement cast to LSL_Types.LSLInteger from double. Fix issue 1770.
parent
e0e0db3660
commit
8b613e677f
|
@ -1281,6 +1281,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
return new LSLInteger(u);
|
||||
}
|
||||
|
||||
static public implicit operator LSLInteger(double d)
|
||||
{
|
||||
return new LSLInteger(d);
|
||||
}
|
||||
|
||||
static public bool operator ==(LSLInteger i1, LSLInteger i2)
|
||||
{
|
||||
bool ret = i1.value == i2.value;
|
||||
|
|
|
@ -1309,6 +1309,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
return new LSLInteger(u);
|
||||
}
|
||||
|
||||
static public implicit operator LSLInteger(double d)
|
||||
{
|
||||
return new LSLInteger(d);
|
||||
}
|
||||
|
||||
static public bool operator ==(LSLInteger i1, LSLInteger i2)
|
||||
{
|
||||
bool ret = i1.value == i2.value;
|
||||
|
|
Loading…
Reference in New Issue