mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Replace implicit casts from LSLFloat to int and uint which were removed in
r5487. Also put the unit tests back for Bamboo to execute them, let's see how this goes.
This commit is contained in:
@@ -1477,6 +1477,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
|
||||
#region Operators
|
||||
|
||||
static public implicit operator int(LSLFloat f)
|
||||
{
|
||||
return (int)f.value;
|
||||
}
|
||||
|
||||
static public implicit operator uint(LSLFloat f)
|
||||
{
|
||||
return (uint) Math.Abs(f.value);
|
||||
}
|
||||
|
||||
static public implicit operator Boolean(LSLFloat f)
|
||||
{
|
||||
if (f.value == 0.0)
|
||||
|
||||
Reference in New Issue
Block a user