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 <wellnho...@aevum.de>
Authored: Sat Mar 12 15:50:35 2016 +0100
Committer: Nick Wellnhofer <wellnho...@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);

Reply via email to