aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_Types.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_Types.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
index c630c27..be790d6 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -1281,6 +1281,11 @@ namespace OpenSim.Region.ScriptEngine.Common
1281 return new LSLInteger(u); 1281 return new LSLInteger(u);
1282 } 1282 }
1283 1283
1284 static public implicit operator LSLInteger(double d)
1285 {
1286 return new LSLInteger(d);
1287 }
1288
1284 static public bool operator ==(LSLInteger i1, LSLInteger i2) 1289 static public bool operator ==(LSLInteger i1, LSLInteger i2)
1285 { 1290 {
1286 bool ret = i1.value == i2.value; 1291 bool ret = i1.value == i2.value;