mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user