Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.

0.6.0-stable
Mike Mazur 2008-07-27 07:09:33 +00:00
parent 6267db0c4c
commit 11a3fbf4aa
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}