Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/ewah-use-right-type-in-sizeof'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 13 Mar 2017 06:21:35 +0000
(23:21 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 13 Mar 2017 06:21:35 +0000
(23:21 -0700)
Code clean-up.
* jk/ewah-use-right-type-in-sizeof:
ewah: fix eword_t/uint64_t confusion
ewah/ewah_io.c
patch
|
blob
|
history
raw
(from parent 1:
36d5286
)
diff --git
a/ewah/ewah_io.c
b/ewah/ewah_io.c
index 61f6a43579f5e3fc98e562fe6f0c6d8c118e0ded..f73210973f12256f120351ef6826c64b62e51880 100644
(file)
--- 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]);