Skip to content

Commit 1697bf3

Browse files
committed
Merge branch 'jk/pack-bitmap'
A last minute (and hopefully the last) fix to avoid coredumps due to an incorrect pointer arithmetic. * jk/pack-bitmap: ewah_bitmap.c: do not assume size_t and eword_t are the same size
2 parents d508e4a + 68f4e1f commit 1697bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ewah/ewah_bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static inline void buffer_grow(struct ewah_bitmap *self, size_t new_size)
4141
self->alloc_size = new_size;
4242
self->buffer = ewah_realloc(self->buffer,
4343
self->alloc_size * sizeof(eword_t));
44-
self->rlw = self->buffer + (rlw_offset / sizeof(size_t));
44+
self->rlw = self->buffer + (rlw_offset / sizeof(eword_t));
4545
}
4646

4747
static inline void buffer_push(struct ewah_bitmap *self, eword_t value)

0 commit comments

Comments
 (0)