Change width of test-only var.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/94b48ca6 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/94b48ca6 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/94b48ca6 Branch: refs/heads/master Commit: 94b48ca6a9713438b284e70d212acfcee96e6811 Parents: 6a7ce0a Author: Marvin Humphrey <[email protected]> Authored: Thu May 26 19:47:42 2016 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu May 26 19:47:42 2016 -0700 ---------------------------------------------------------------------- core/Lucy/Index/PostingListWriter.c | 4 ++-- core/Lucy/Index/PostingListWriter.cfh | 2 +- perl/buildlib/Lucy/Build/Binding/Index.pm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/94b48ca6/core/Lucy/Index/PostingListWriter.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Index/PostingListWriter.c b/core/Lucy/Index/PostingListWriter.c index ef65b9b..a9adaa9 100644 --- a/core/Lucy/Index/PostingListWriter.c +++ b/core/Lucy/Index/PostingListWriter.c @@ -36,7 +36,7 @@ #include "Lucy/Store/OutStream.h" #include "Lucy/Util/MemoryPool.h" -static size_t default_mem_thresh = 0x1000000; +static uint32_t default_mem_thresh = 0x1000000; int32_t PListWriter_current_file_format = 1; @@ -129,7 +129,7 @@ PListWriter_Destroy_IMP(PostingListWriter *self) { } void -PListWriter_set_default_mem_thresh(size_t mem_thresh) { +PListWriter_set_default_mem_thresh(uint32_t mem_thresh) { default_mem_thresh = mem_thresh; } http://git-wip-us.apache.org/repos/asf/lucy/blob/94b48ca6/core/Lucy/Index/PostingListWriter.cfh ---------------------------------------------------------------------- diff --git a/core/Lucy/Index/PostingListWriter.cfh b/core/Lucy/Index/PostingListWriter.cfh index 5dd0591..bb805db 100644 --- a/core/Lucy/Index/PostingListWriter.cfh +++ b/core/Lucy/Index/PostingListWriter.cfh @@ -45,7 +45,7 @@ class Lucy::Index::PostingListWriter nickname PListWriter /** Test only. */ inert void - set_default_mem_thresh(size_t mem_thresh); + set_default_mem_thresh(uint32_t mem_thresh); void Add_Inverted_Doc(PostingListWriter *self, Inverter *inverter, http://git-wip-us.apache.org/repos/asf/lucy/blob/94b48ca6/perl/buildlib/Lucy/Build/Binding/Index.pm ---------------------------------------------------------------------- diff --git a/perl/buildlib/Lucy/Build/Binding/Index.pm b/perl/buildlib/Lucy/Build/Binding/Index.pm index b11b8d7..9471bb9 100644 --- a/perl/buildlib/Lucy/Build/Binding/Index.pm +++ b/perl/buildlib/Lucy/Build/Binding/Index.pm @@ -660,7 +660,7 @@ MODULE = Lucy PACKAGE = Lucy::Index::PostingListWriter void set_default_mem_thresh(mem_thresh) - size_t mem_thresh; + uint32_t mem_thresh; PPCODE: lucy_PListWriter_set_default_mem_thresh(mem_thresh); END_XS
