Repository: lucy
Updated Branches:
  refs/heads/const_pointers [created] 049ae7319


Const LexIndex offsets


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

Branch: refs/heads/const_pointers
Commit: 093dc8b2f49436c6cc29a36ffd18967bfb5ac51d
Parents: 97dc3b3
Author: Nick Wellnhofer <[email protected]>
Authored: Tue Aug 12 21:14:46 2014 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Tue Aug 12 21:36:11 2014 +0200

----------------------------------------------------------------------
 core/Lucy/Index/LexIndex.c   |  4 ++--
 core/Lucy/Index/LexIndex.cfh | 20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/093dc8b2/core/Lucy/Index/LexIndex.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/LexIndex.c b/core/Lucy/Index/LexIndex.c
index d1b4b16..91e8d03 100644
--- a/core/Lucy/Index/LexIndex.c
+++ b/core/Lucy/Index/LexIndex.c
@@ -83,8 +83,8 @@ LexIndex_init(LexIndex *self, Schema *schema, Folder *folder,
     ivars->index_interval = Arch_Index_Interval(arch);
     ivars->skip_interval  = Arch_Skip_Interval(arch);
     ivars->size    = (int32_t)(InStream_Length(ivars->ixix_in) / 
sizeof(int64_t));
-    ivars->offsets = (int64_t*)InStream_Buf(ivars->ixix_in,
-                                           
(size_t)InStream_Length(ivars->ixix_in));
+    ivars->offsets = (const int64_t*)InStream_Buf(ivars->ixix_in,
+            (size_t)InStream_Length(ivars->ixix_in));
 
     DECREF(ixix_file);
     DECREF(ix_file);

http://git-wip-us.apache.org/repos/asf/lucy/blob/093dc8b2/core/Lucy/Index/LexIndex.cfh
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/LexIndex.cfh b/core/Lucy/Index/LexIndex.cfh
index 3d197fe..1d360aa 100644
--- a/core/Lucy/Index/LexIndex.cfh
+++ b/core/Lucy/Index/LexIndex.cfh
@@ -18,16 +18,16 @@ parcel Lucy;
 
 class Lucy::Index::LexIndex inherits Lucy::Index::Lexicon {
 
-    FieldType   *field_type;
-    InStream    *ixix_in;
-    InStream    *ix_in;
-    int64_t     *offsets;
-    int32_t      tick;
-    int32_t      size;
-    int32_t      index_interval;
-    int32_t      skip_interval;
-    TermStepper *term_stepper;
-    TermInfo    *tinfo;
+    FieldType     *field_type;
+    InStream      *ixix_in;
+    InStream      *ix_in;
+    const int64_t *offsets;
+    int32_t        tick;
+    int32_t        size;
+    int32_t        index_interval;
+    int32_t        skip_interval;
+    TermStepper   *term_stepper;
+    TermInfo      *tinfo;
 
     inert incremented LexIndex*
     new(Schema *schema, Folder *folder, Segment *segment,

Reply via email to