aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorCharles Krinke2008-11-03 01:57:10 +0000
committerCharles Krinke2008-11-03 01:57:10 +0000
commit07ba2f43631fed57b0c85b2d3faaa077966cd7fe (patch)
tree9708ef2a7f38a2d9421f071e469fc11c2f871a45 /OpenSim
parentAdded some more coloring to nant-color (especially for tests) (diff)
downloadopensim-SC_OLD-07ba2f43631fed57b0c85b2d3faaa077966cd7fe.zip
opensim-SC_OLD-07ba2f43631fed57b0c85b2d3faaa077966cd7fe.tar.gz
opensim-SC_OLD-07ba2f43631fed57b0c85b2d3faaa077966cd7fe.tar.bz2
opensim-SC_OLD-07ba2f43631fed57b0c85b2d3faaa077966cd7fe.tar.xz
Mantis #2530. Thank you kindly, Idb for a patch that:
The attached patch changes the casts from explicit to implicit.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 6c78ef8..65b1b5c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -102,7 +102,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
102 return new Vector3(s); 102 return new Vector3(s);
103 } 103 }
104 104
105 public static explicit operator list(Vector3 vec) 105 public static implicit operator list(Vector3 vec)
106 { 106 {
107 return new list(new object[] { vec }); 107 return new list(new object[] { vec });
108 } 108 }
@@ -356,7 +356,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
356 return new Quaternion(s); 356 return new Quaternion(s);
357 } 357 }
358 358
359 public static explicit operator list(Quaternion r) 359 public static implicit operator list(Quaternion r)
360 { 360 {
361 return new list(new object[] { r }); 361 return new list(new object[] { r });
362 } 362 }
@@ -1404,7 +1404,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1404 return new LSLFloat(Convert.ToDouble(s.m_string)); 1404 return new LSLFloat(Convert.ToDouble(s.m_string));
1405 } 1405 }
1406 1406
1407 public static explicit operator list(LSLString s) 1407 public static implicit operator list(LSLString s)
1408 { 1408 {
1409 return new list(new object[]{s}); 1409 return new list(new object[]{s});
1410 } 1410 }
@@ -1503,7 +1503,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1503 return new LSLString(i.ToString()); 1503 return new LSLString(i.ToString());
1504 } 1504 }
1505 1505
1506 public static explicit operator list(LSLInteger i) 1506 public static implicit operator list(LSLInteger i)
1507 { 1507 {
1508 return new list(new object[] { i }); 1508 return new list(new object[] { i });
1509 } 1509 }
@@ -1796,7 +1796,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1796 return new LSLFloat(double.Parse(v)); 1796 return new LSLFloat(double.Parse(v));
1797 } 1797 }
1798 1798
1799 public static explicit operator list(LSLFloat f) 1799 public static implicit operator list(LSLFloat f)
1800 { 1800 {
1801 return new list(new object[] { f }); 1801 return new list(new object[] { f });
1802 } 1802 }