diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-21 15:03:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-21 15:03:24 -0700 |
commit | 06c0ed7bfb5f05fe787e77371ef4c74c4fc245b4 (patch) | |
tree | 9a0da64ec2adafcb8c94b4954baab7be9d4a4bb3 | |
parent | 1f6b1afea00cdbc99114b88768aa5e617ff479df (diff) | |
parent | 3255e512a8594cc5f811aea0dd769429c0f0d614 (diff) | |
download | git-06c0ed7bfb5f05fe787e77371ef4c74c4fc245b4.tar.gz git-06c0ed7bfb5f05fe787e77371ef4c74c4fc245b4.tar.xz |
Merge branch 'jk/ewah-use-right-type-in-sizeof' into maint
Code clean-up.
* jk/ewah-use-right-type-in-sizeof:
ewah: fix eword_t/uint64_t confusion
-rw-r--r-- | ewah/ewah_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ewah/ewah_io.c b/ewah/ewah_io.c index 61f6a4357..f73210973 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]); |