diff options
author | Mike Mazur | 2008-07-24 05:23:38 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-24 05:23:38 +0000 |
commit | 117cc09edcc796f93cb05f98d7589b7ca5313ee8 (patch) | |
tree | f4023623fd833dd9e681e4b9556a099a773fc2fb /OpenSim/Tests | |
parent | Addresses Mantis #1810 (diff) | |
download | opensim-SC-117cc09edcc796f93cb05f98d7589b7ca5313ee8.zip opensim-SC-117cc09edcc796f93cb05f98d7589b7ca5313ee8.tar.gz opensim-SC-117cc09edcc796f93cb05f98d7589b7ca5313ee8.tar.bz2 opensim-SC-117cc09edcc796f93cb05f98d7589b7ca5313ee8.tar.xz |
Replace implicit casts from LSLFloat to int and uint which were removed in
r5487.
Also put the unit tests back for Bamboo to execute them, let's see how this
goes.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/LSL_TypesTestLSLFloat.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/LSL_TypesTestLSLFloat.cs b/OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/LSL_TypesTestLSLFloat.cs index 130c0ec..29d0e1c 100644 --- a/OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/LSL_TypesTestLSLFloat.cs +++ b/OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/LSL_TypesTestLSLFloat.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
133 | 133 | ||
134 | foreach (KeyValuePair<double, int> number in numberSet) | 134 | foreach (KeyValuePair<double, int> number in numberSet) |
135 | { | 135 | { |
136 | testNumber = (int)(new LSL_Types.LSLFloat(number.Key)); | 136 | testNumber = new LSL_Types.LSLFloat(number.Key); |
137 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting int " + number.Value); | 137 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting int " + number.Value); |
138 | } | 138 | } |
139 | } | 139 | } |
@@ -170,7 +170,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests | |||
170 | 170 | ||
171 | foreach (KeyValuePair<double, int> number in numberSet) | 171 | foreach (KeyValuePair<double, int> number in numberSet) |
172 | { | 172 | { |
173 | testNumber = (uint)(new LSL_Types.LSLFloat(number.Key)); | 173 | testNumber = new LSL_Types.LSLFloat(number.Key); |
174 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting uint " + number.Value); | 174 | Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting uint " + number.Value); |
175 | } | 175 | } |
176 | } | 176 | } |