Fixed wrong allocation size for theory indices
This commit is contained in:
parent
45fc694639
commit
933bbefa11
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ static void concat_arg(char (*msg)[4096], struct criterion_datapoints *dps, size
|
|||
void cr_theory_main(struct criterion_datapoints *dps, size_t datapoints, void (*fnptr)(void)) {
|
||||
struct criterion_theory_context *ctx = cr_theory_init();
|
||||
|
||||
size_t *indices = malloc(datapoints);
|
||||
size_t *indices = malloc(sizeof (size_t) * datapoints);
|
||||
memset(indices, 0, datapoints * sizeof (size_t));
|
||||
|
||||
bool has_next = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue