From 07ba2f43631fed57b0c85b2d3faaa077966cd7fe Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Mon, 3 Nov 2008 01:57:10 +0000 Subject: Mantis #2530. Thank you kindly, Idb for a patch that: The attached patch changes the casts from explicit to implicit. --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim') 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 return new Vector3(s); } - public static explicit operator list(Vector3 vec) + public static implicit operator list(Vector3 vec) { return new list(new object[] { vec }); } @@ -356,7 +356,7 @@ namespace OpenSim.Region.ScriptEngine.Shared return new Quaternion(s); } - public static explicit operator list(Quaternion r) + public static implicit operator list(Quaternion r) { return new list(new object[] { r }); } @@ -1404,7 +1404,7 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLFloat(Convert.ToDouble(s.m_string)); } - public static explicit operator list(LSLString s) + public static implicit operator list(LSLString s) { return new list(new object[]{s}); } @@ -1503,7 +1503,7 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLString(i.ToString()); } - public static explicit operator list(LSLInteger i) + public static implicit operator list(LSLInteger i) { return new list(new object[] { i }); } @@ -1796,7 +1796,7 @@ namespace OpenSim.Region.ScriptEngine.Shared return new LSLFloat(double.Parse(v)); } - public static explicit operator list(LSLFloat f) + public static implicit operator list(LSLFloat f) { return new list(new object[] { f }); } -- cgit v1.1