lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [3/4] lucenenet git commit: correct Debug.Assert comparisson
Date Sun, 18 Jan 2015 03:23:18 GMT
correct Debug.Assert comparisson


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

Branch: refs/heads/master
Commit: dd5e572f527dbf59167ffcad311fc0326da29dbf
Parents: 580df44
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sat Jan 17 21:19:22 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sat Jan 17 21:19:22 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Fst/BytesStore.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/dd5e572f/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Fst/BytesStore.cs b/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
index 6246863..472d630 100644
--- a/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
+++ b/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
@@ -486,7 +486,7 @@ namespace Lucene.Net.Util.Fst
                     nextBuffer = bufferIndex + 1;
                     OuterInstance.Current = OuterInstance.Blocks[bufferIndex];
                     nextRead = (int)(value & OuterInstance.BlockMask);
-                    Debug.Assert(OuterInstance.Position == value, "pos=" + value + " getPos()="
+ OuterInstance.Position);
+                    Debug.Assert(this.Position == value, "pos=" + value + " getPos()=" +
this.Position);
                 }
             }
 
@@ -568,7 +568,7 @@ namespace Lucene.Net.Util.Fst
                     nextBuffer = bufferIndex - 1;
                     OuterInstance.Current = OuterInstance.Blocks[bufferIndex];
                     nextRead = (int)(value & OuterInstance.BlockMask);
-                    Debug.Assert(OuterInstance.Position == value, "value=" + value + " this.Position="
+ this.Position);
+                    Debug.Assert(this.Position == value, "value=" + value + " this.Position="
+ this.Position);
                 }
             }
 


Mime
View raw message