* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)
parent
76d8eaa406
commit
bcab39831e
|
@ -1200,11 +1200,17 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
static public implicit operator Int32(LSLInteger i)
|
|
||||||
|
static public implicit operator int(LSLInteger i)
|
||||||
{
|
{
|
||||||
return i.value;
|
return i.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public implicit operator uint(LSLInteger i)
|
||||||
|
{
|
||||||
|
return (uint)i.value;
|
||||||
|
}
|
||||||
|
|
||||||
static public explicit operator LSLString(LSLInteger i)
|
static public explicit operator LSLString(LSLInteger i)
|
||||||
{
|
{
|
||||||
return new LSLString(i.ToString());
|
return new LSLString(i.ToString());
|
||||||
|
|
Loading…
Reference in New Issue