Adapt for size_t tick param to Vec_Store.

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

Branch: refs/heads/master
Commit: f57736f3d759eded77d52f3bcacda3e180a31b28
Parents: 76dc745
Author: Marvin Humphrey <mar...@rectangular.com>
Authored: Mon Apr 25 13:50:16 2016 -0700
Committer: Marvin Humphrey <mar...@rectangular.com>
Committed: Mon Apr 25 13:50:16 2016 -0700

----------------------------------------------------------------------
 c/src/Lucy/Index/Inverter.c         | 2 +-
 core/Lucy/Index/PostingListWriter.c | 2 +-
 core/Lucy/Index/SortWriter.c        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/f57736f3/c/src/Lucy/Index/Inverter.c
----------------------------------------------------------------------
diff --git a/c/src/Lucy/Index/Inverter.c b/c/src/Lucy/Index/Inverter.c
index 96c6c15..d233e67 100644
--- a/c/src/Lucy/Index/Inverter.c
+++ b/c/src/Lucy/Index/Inverter.c
@@ -54,7 +54,7 @@ S_fetch_entry(InverterIVARS *ivars, String *field) {
         = (InverterEntry*)Vec_Fetch(ivars->entry_pool, (size_t)field_num);
     if (!entry) {
         entry = InvEntry_new(schema, (String*)field, field_num);
-        Vec_Store(ivars->entry_pool, field_num, (Obj*)entry);
+        Vec_Store(ivars->entry_pool, (size_t)field_num, (Obj*)entry);
     }
     return entry;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/f57736f3/core/Lucy/Index/PostingListWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/PostingListWriter.c 
b/core/Lucy/Index/PostingListWriter.c
index 42423db..ef65b9b 100644
--- a/core/Lucy/Index/PostingListWriter.c
+++ b/core/Lucy/Index/PostingListWriter.c
@@ -111,7 +111,7 @@ S_lazy_init_posting_pool(PostingListWriter *self, int32_t 
field_num) {
                             ivars->polyreader, field, ivars->lex_writer,
                             ivars->mem_pool, ivars->lex_temp_out,
                             ivars->post_temp_out, ivars->skip_out);
-        Vec_Store(ivars->pools, field_num, (Obj*)pool);
+        Vec_Store(ivars->pools, (size_t)field_num, (Obj*)pool);
     }
     return pool;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/f57736f3/core/Lucy/Index/SortWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortWriter.c b/core/Lucy/Index/SortWriter.c
index 53995c5..f91b8b1 100644
--- a/core/Lucy/Index/SortWriter.c
+++ b/core/Lucy/Index/SortWriter.c
@@ -126,7 +126,7 @@ S_lazy_init_field_writer(SortWriter *self, int32_t 
field_num) {
                                   ivars->polyreader, field, ivars->counter,
                                   ivars->mem_thresh, ivars->temp_ord_out,
                                   ivars->temp_ix_out, ivars->temp_dat_out);
-        Vec_Store(ivars->field_writers, field_num, (Obj*)field_writer);
+        Vec_Store(ivars->field_writers, (size_t)field_num, (Obj*)field_writer);
     }
     return field_writer;
 }

Reply via email to