mirror of
https://github.com/opensim/opensim.git
synced 2026-07-30 21:38:46 +08:00
Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.
This commit is contained in:
@@ -1286,7 +1286,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return new LSLInteger(u);
|
||||
}
|
||||
|
||||
static public implicit operator LSLInteger(double d)
|
||||
static public explicit operator LSLInteger(double d)
|
||||
{
|
||||
return new LSLInteger(d);
|
||||
}
|
||||
|
||||
@@ -1314,7 +1314,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
return new LSLInteger(u);
|
||||
}
|
||||
|
||||
static public implicit operator LSLInteger(double d)
|
||||
static public explicit operator LSLInteger(double d)
|
||||
{
|
||||
return new LSLInteger(d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user