Repository: lucy Updated Branches: refs/heads/master eefbb4085 -> ee5cebea4
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/cb66d5d8 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/cb66d5d8 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/cb66d5d8 Branch: refs/heads/master Commit: cb66d5d8f0641c84fde2607fe109978fe3562ade Parents: eefbb40 Author: Nick Wellnhofer <[email protected]> Authored: Sat Mar 12 15:50:35 2016 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Sat Mar 12 15:50:35 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/cb66d5d8/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);
