diff options
author | Adam Frisby | 2008-05-01 18:55:36 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 18:55:36 +0000 |
commit | bcab39831ec156df09284666492eaa9a3b1fe3b2 (patch) | |
tree | 92e4636c109b9c4b13c5d04340b99cadbc5d28a0 /OpenSim/Region/ScriptEngine | |
parent | * Thanks to Mic Bowman for inspiring me to look at that we are still using AS... (diff) | |
download | opensim-SC-bcab39831ec156df09284666492eaa9a3b1fe3b2.zip opensim-SC-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.gz opensim-SC-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.bz2 opensim-SC-bcab39831ec156df09284666492eaa9a3b1fe3b2.tar.xz |
* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int cast more generic (Thanks Melanie!)
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 8 |
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()); |