Skip to content

Commit

Permalink
Fix for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed May 21, 2024
1 parent 23279fa commit 4513c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static unsigned integer_sqrt(unsigned n)
static void
clear_cache(unsigned long n)
{
volatile char *p = malloc(n);
volatile char *p = (volatile char *) malloc(n);
if (!p) abort();
for(unsigned long i = 0; i < n ; i++)
p[i] = rand_get();
Expand Down

0 comments on commit 4513c69

Please sign in to comment.