Skip to content

Commit

Permalink
Need extra bin in histogram (sanitizer report)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwdraper committed Aug 19, 2024
1 parent 611b052 commit eeda093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testNeutrinoFermiDirac.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) {

/* We also construct a histogram */
int bins = 1000;
int *histogram1 = (int *)calloc(bins, sizeof(int));
int *histogram1 = (int *)calloc(bins + 1, sizeof(int));

/* Generate the same numbers again and compute statistics and histogram */
for (int i = 0; i < N; i++) {
Expand Down

0 comments on commit eeda093

Please sign in to comment.