From 1c8f4905735ff7653313f725fea13bf6346d1389 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 31 Jul 2008 00:29:19 +0000 Subject: More LSL_Types implicit/explicit cast changes. Fix issue 1854. --- OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index d0a5079..b8a4a4d 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1439,12 +1439,12 @@ namespace OpenSim.Region.ScriptEngine.Common #region Operators - static public implicit operator int(LSLFloat f) + static public explicit operator int(LSLFloat f) { return (int)f.value; } - static public implicit operator uint(LSLFloat f) + static public explicit operator uint(LSLFloat f) { return (uint) Math.Abs(f.value); } @@ -1471,7 +1471,7 @@ namespace OpenSim.Region.ScriptEngine.Common return new LSLFloat(i.value); } - static public implicit operator LSLFloat(string s) + static public explicit operator LSLFloat(string s) { return new LSLFloat(double.Parse(s)); } -- cgit v1.1