summaryrefslogtreecommitdiff
path: root/ewah/ewah_io.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-03-12 23:21:35 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-12 23:21:35 -0700
commitcb36508ac50baa3f8b2df9bc2c69c260c5977b8f (patch)
tree1d4d76d4e231a8c91180aed05e3d9d349b5e788c /ewah/ewah_io.c
parentMerge branch 'ax/line-log-range-merge-fix' (diff)
parentewah: fix eword_t/uint64_t confusion (diff)
downloadtgif-cb36508ac50baa3f8b2df9bc2c69c260c5977b8f.tar.xz
Merge branch 'jk/ewah-use-right-type-in-sizeof'
Code clean-up. * jk/ewah-use-right-type-in-sizeof: ewah: fix eword_t/uint64_t confusion
Diffstat (limited to 'ewah/ewah_io.c')
-rw-r--r--ewah/ewah_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ewah/ewah_io.c b/ewah/ewah_io.c
index 61f6a43579..f73210973f 100644
--- a/ewah/ewah_io.c
+++ b/ewah/ewah_io.c
@@ -142,8 +142,8 @@ int ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len)
* the endianness conversion in a separate pass to ensure
* we're loading 8-byte aligned words.
*/
- memcpy(self->buffer, ptr, self->buffer_size * sizeof(uint64_t));
- ptr += self->buffer_size * sizeof(uint64_t);
+ memcpy(self->buffer, ptr, self->buffer_size * sizeof(eword_t));
+ ptr += self->buffer_size * sizeof(eword_t);
for (i = 0; i < self->buffer_size; ++i)
self->buffer[i] = ntohll(self->buffer[i]);