Skip to content

Commit

Permalink
Merge branch 'jk/ewah-use-right-type-in-sizeof'
Browse files Browse the repository at this point in the history
Code clean-up.

* jk/ewah-use-right-type-in-sizeof:
  ewah: fix eword_t/uint64_t confusion
  • Loading branch information
gitster committed Mar 13, 2017
2 parents 36d5286 + 3255e51 commit cb36508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ewah/ewah_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit cb36508

Please sign in to comment.