lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r930416 - /lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c
Date Fri, 02 Apr 2010 22:16:03 GMT
Author: marvin
Date: Fri Apr  2 22:16:03 2010
New Revision: 930416

URL: http://svn.apache.org/viewvc?rev=930416&view=rev
Log:
Add a cast to prevent a loss-of-precision warning in MSVC.

Modified:
    lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c

Modified: lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c?rev=930416&r1=930415&r2=930416&view=diff
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c (original)
+++ lucene/lucy/trunk/core/Lucy/Test/Util/TestMemory.c Fri Apr  2 22:16:03 2010
@@ -14,7 +14,7 @@ test_oversize__growth_rate(TestBatch *ba
     double   average_growth_rate = 0.0;
 
     while (size < SIZE_MAX) {
-        uint64_t next_size = Memory_oversize(size + 1, sizeof(void*));
+        uint64_t next_size = Memory_oversize((size_t)size + 1, sizeof(void*));
         if (next_size < size) {
             success = false;
             FAIL(batch, "Asked for %" I64P ", got smaller amount %" I64P,



Mime
View raw message