From: <syn...@us...> - 2009-04-12 18:06:51
|
Revision: 2988 http://clucene.svn.sourceforge.net/clucene/?rev=2988&view=rev Author: synhershko Date: 2009-04-12 18:06:46 +0000 (Sun, 12 Apr 2009) Log Message: ----------- signed/unsigned mismatch Modified Paths: -------------- branches/lucene2_3_2/src/core/CLucene/document/NumberTools.cpp branches/lucene2_3_2/src/core/CLucene/document/NumberTools.h Modified: branches/lucene2_3_2/src/core/CLucene/document/NumberTools.cpp =================================================================== --- branches/lucene2_3_2/src/core/CLucene/document/NumberTools.cpp 2009-04-12 17:12:31 UTC (rev 2987) +++ branches/lucene2_3_2/src/core/CLucene/document/NumberTools.cpp 2009-04-12 18:06:46 UTC (rev 2988) @@ -39,7 +39,7 @@ _i64tot(l, tmp, NUMBERTOOLS_RADIX); size_t len = _tcslen(tmp); _tcscpy(buf+(STR_SIZE-len),tmp); - for ( int32_t i=1;i<STR_SIZE-len;i++ ) + for ( size_t i=1;i<STR_SIZE-len;i++ ) buf[i] = (int)'0'; buf[STR_SIZE] = 0; Modified: branches/lucene2_3_2/src/core/CLucene/document/NumberTools.h =================================================================== --- branches/lucene2_3_2/src/core/CLucene/document/NumberTools.h 2009-04-12 17:12:31 UTC (rev 2987) +++ branches/lucene2_3_2/src/core/CLucene/document/NumberTools.h 2009-04-12 18:06:46 UTC (rev 2988) @@ -47,7 +47,7 @@ /** * The length of (all) strings returned by {@link #longToString} */ - LUCENE_STATIC_CONSTANT (int32_t, STR_SIZE = 14); + LUCENE_STATIC_CONSTANT (size_t, STR_SIZE = 14); /** * Converts a long to a String suitable for indexing. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |