Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.
parent
6267db0c4c
commit
11a3fbf4aa
|
@ -1286,7 +1286,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
return new LSLInteger(u);
|
return new LSLInteger(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public implicit operator LSLInteger(double d)
|
static public explicit operator LSLInteger(double d)
|
||||||
{
|
{
|
||||||
return new LSLInteger(d);
|
return new LSLInteger(d);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1314,7 +1314,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
return new LSLInteger(u);
|
return new LSLInteger(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public implicit operator LSLInteger(double d)
|
static public explicit operator LSLInteger(double d)
|
||||||
{
|
{
|
||||||
return new LSLInteger(d);
|
return new LSLInteger(d);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue