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
This commit is contained in:
Junio C Hamano 2017-03-21 15:03:23 -07:00
Родитель 1f6b1afea0 3255e512a8
Коммит 06c0ed7bfb
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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]);