* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)

This commit is contained in:
Adam Frisby
2008-05-01 18:55:36 +00:00
parent 76d8eaa406
commit bcab39831e

View File

@@ -1200,11 +1200,17 @@ namespace OpenSim.Region.ScriptEngine.Common
}
#endregion
static public implicit operator Int32(LSLInteger i)
static public implicit operator int(LSLInteger i)
{
return i.value;
}
static public implicit operator uint(LSLInteger i)
{
return (uint)i.value;
}
static public explicit operator LSLString(LSLInteger i)
{
return new LSLString(i.ToString());