lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [1/2] lucy git commit: Fix compiler warning
Date Sat, 12 Mar 2016 14:53:08 GMT
Repository: lucy
Updated Branches:
  refs/heads/0.5 29b6f7370 -> 557fdbca6


Fix compiler warning


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

Branch: refs/heads/0.5
Commit: de602e9991b8ff146366f03d34056148a1abcf84
Parents: 29b6f73
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sat Mar 12 15:50:35 2016 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sat Mar 12 15:51:01 2016 +0100

----------------------------------------------------------------------
 core/Lucy/Index/SortWriter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/de602e99/core/Lucy/Index/SortWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortWriter.c b/core/Lucy/Index/SortWriter.c
index 4c9ce50..34be6eb 100644
--- a/core/Lucy/Index/SortWriter.c
+++ b/core/Lucy/Index/SortWriter.c
@@ -151,7 +151,7 @@ SortWriter_Add_Inverted_Doc_IMP(SortWriter *self, Inverter *inverter,
     // If our SortFieldWriters have collectively passed the memory threshold,
     // flush all of them, then reset the counter which tracks memory
     // consumption.
-    if (Counter_Get_Value(ivars->counter) > ivars->mem_thresh) {
+    if ((size_t)Counter_Get_Value(ivars->counter) > ivars->mem_thresh) {
         for (uint32_t i = 0; i < Vec_Get_Size(ivars->field_writers); i++) {
             SortFieldWriter *const field_writer
                 = (SortFieldWriter*)Vec_Fetch(ivars->field_writers, i);


Mime
View raw message