Skip to content

Commit

Permalink
Update bench.c to avoid errors from strict c++ compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
spaskalev committed Jun 14, 2024
1 parent 8baf549 commit 11f49ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ int main() {
setvbuf(stdout, NULL, _IONBF, 0);

size_t arena_size = 1 << 30;
unsigned char *buddy_buf = malloc(buddy_sizeof_alignment(arena_size, 64));
unsigned char *data_buf = malloc(arena_size);
unsigned char *buddy_buf = (unsigned char *) malloc(buddy_sizeof_alignment(arena_size, 64));
unsigned char *data_buf = (unsigned char *) malloc(arena_size);
struct buddy *buddy = buddy_init_alignment(buddy_buf, data_buf, arena_size, 64);

double total = 0;
Expand Down

0 comments on commit 11f49ac

Please sign in to comment.