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

0.6.0-stable
Adam Frisby 2008-05-01 18:55:36 +00:00
parent 76d8eaa406
commit bcab39831e
1 changed files with 7 additions and 1 deletions

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());