Skip to content

Commit

Permalink
Merge branch 'jk/pack-bitmap'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Apr 24, 2014
2 parents d508e4a + 68f4e1f commit 1697bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ewah/ewah_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static inline void buffer_grow(struct ewah_bitmap *self, size_t new_size)
self->alloc_size = new_size;
self->buffer = ewah_realloc(self->buffer,
self->alloc_size * sizeof(eword_t));
self->rlw = self->buffer + (rlw_offset / sizeof(size_t));
self->rlw = self->buffer + (rlw_offset / sizeof(eword_t));
}

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

0 comments on commit 1697bf3

Please sign in to comment.