Commit b362c1a7 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Don't use void * arithmetic

parent c476c3fb
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
void *dump_get(struct dump *d, size_t count, size_t *offset) { void *dump_get(struct dump *d, size_t count, size_t *offset) {
size_t local_offset = atomic_add(&d->count, count); size_t local_offset = atomic_add(&d->count, count);
*offset = local_offset + d->file_offset; *offset = local_offset + d->file_offset;
return d->data + local_offset; return (char *)d->data + local_offset;
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment