Fix harmless type glitch in BitVector.

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

Branch: refs/heads/master
Commit: bca2a204a9c09ef34a4dc3baba5d46bb147cc100
Parents: b5ad0f2
Author: Marvin Humphrey <[email protected]>
Authored: Thu May 26 20:18:23 2016 -0700
Committer: Marvin Humphrey <[email protected]>
Committed: Thu May 26 20:18:50 2016 -0700

----------------------------------------------------------------------
 core/Lucy/Object/BitVector.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/bca2a204/core/Lucy/Object/BitVector.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Object/BitVector.c b/core/Lucy/Object/BitVector.c
index 22c5487..e340e18 100644
--- a/core/Lucy/Object/BitVector.c
+++ b/core/Lucy/Object/BitVector.c
@@ -265,7 +265,7 @@ S_do_or_or_xor(BitVector *self, const BitVector *other, int 
operation) {
     uint8_t *bits_a, *bits_b;
     size_t max_cap, min_cap;
     uint8_t *limit;
-    double byte_size;
+    size_t byte_size;
 
     // Sort out what the minimum and maximum caps are.
     if (ivars->cap < ovars->cap) {
@@ -282,7 +282,7 @@ S_do_or_or_xor(BitVector *self, const BitVector *other, int 
operation) {
     bits_a        = ivars->bits;
     bits_b        = ovars->bits;
     byte_size     = SI_octet_size(min_cap);
-    limit         = ivars->bits + (size_t)byte_size;
+    limit         = ivars->bits + byte_size;
 
     // Perform union of common bits.
     if (operation == DO_OR) {

Reply via email to