aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2008-05-01 18:55:36 +0000
committerAdam Frisby2008-05-01 18:55:36 +0000
commitbcab39831ec156df09284666492eaa9a3b1fe3b2 (patch)
tree92e4636c109b9c4b13c5d04340b99cadbc5d28a0 /OpenSim
parent* Thanks to Mic Bowman for inspiring me to look at that we are still using AS... (diff)
downloadopensim-SC_OLD-bcab39831ec156df09284666492eaa9a3b1fe3b2.zip
opensim-SC_OLD-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.gz
opensim-SC_OLD-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.bz2
opensim-SC_OLD-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.xz
* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_Types.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
index 5337d7f..bfc5053 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -1200,11 +1200,17 @@ namespace OpenSim.Region.ScriptEngine.Common
1200 } 1200 }
1201 1201
1202 #endregion 1202 #endregion
1203 static public implicit operator Int32(LSLInteger i) 1203
1204 static public implicit operator int(LSLInteger i)
1204 { 1205 {
1205 return i.value; 1206 return i.value;
1206 } 1207 }
1207 1208
1209 static public implicit operator uint(LSLInteger i)
1210 {
1211 return (uint)i.value;
1212 }
1213
1208 static public explicit operator LSLString(LSLInteger i) 1214 static public explicit operator LSLString(LSLInteger i)
1209 { 1215 {
1210 return new LSLString(i.ToString()); 1216 return new LSLString(i.ToString());