aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMike Mazur2008-07-25 07:50:31 +0000
committerMike Mazur2008-07-25 07:50:31 +0000
commit19ad7db5e1ebcce8fc13995270b2ebe94f8a9a52 (patch)
tree3de434cccd390c7068726e874756e44a9e82c322 /OpenSim/Region/ScriptEngine/Shared
parentThanks, lulurun, for a patch that adds an authenticated session cache to reduce (diff)
downloadopensim-SC_OLD-19ad7db5e1ebcce8fc13995270b2ebe94f8a9a52.zip
opensim-SC_OLD-19ad7db5e1ebcce8fc13995270b2ebe94f8a9a52.tar.gz
opensim-SC_OLD-19ad7db5e1ebcce8fc13995270b2ebe94f8a9a52.tar.bz2
opensim-SC_OLD-19ad7db5e1ebcce8fc13995270b2ebe94f8a9a52.tar.xz
Add casts from integer to float. Fix issue 1822.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index f49d453..7eb5e77 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1509,6 +1509,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
1509 return new LSLFloat(i); 1509 return new LSLFloat(i);
1510 } 1510 }
1511 1511
1512 static public implicit operator LSLFloat(LSLInteger i)
1513 {
1514 return new LSLFloat(i.value);
1515 }
1516
1512 static public implicit operator LSLFloat(string s) 1517 static public implicit operator LSLFloat(string s)
1513 { 1518 {
1514 return new LSLFloat(double.Parse(s)); 1519 return new LSLFloat(double.Parse(s));