lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r603116 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs
Date Tue, 11 Dec 2007 02:06:47 GMT
Author: aroush
Date: Mon Dec 10 18:06:47 2007
New Revision: 603116

URL: http://svn.apache.org/viewvc?rev=603116&view=rev
Log:
Fix: LUCENENET-104 "Name of first index segment is empty string"

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/NumberTools.cs?rev=603116&r1=603115&r2=603116&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/NumberTools.cs Mon Dec 10 18:06:47
2007
@@ -172,6 +172,11 @@
 
         public static System.String ToString(long lval)
         {
+            if (lval == 0)
+            {
+                return "0";
+            }
+
             int maxStrLen = powersOf36.Length;
             long curval = lval;
 



Mime
View raw message