lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lai...@apache.org
Subject [2/2] lucenenet git commit: make sure to use float
Date Sat, 30 May 2015 00:37:52 GMT
make sure to use float


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/03274256
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/03274256
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/03274256

Branch: refs/heads/failingtests
Commit: 03274256379aceb56a37117963ad23c40721c335
Parents: c1e308c
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 29 20:37:22 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 29 20:37:22 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/03274256/src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs b/src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs
index c64cc7a..8b6e59e 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFuzzyQuery.cs
@@ -243,8 +243,8 @@ namespace Lucene.Net.Search
         {
             for (var i = 0; i < 20; i++)
             {
-                var minSimilarity = 0.0;
-
+                var minSimilarity = 0.0f;
+                
                 var scaleFactor = 1.0f/(1.0f - minSimilarity);
 
                 float similarity = 1.0f - (float) 1/(float) 7;


Mime
View raw message