Skip to content

Commit

Permalink
Fix: memset entire dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Jan 19, 2025
1 parent 458342d commit e70d6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reduce_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ dataset_t make_dataset( //
#endif

// Initialize the allocated memory to zero to make sure it's not a copy-on-write mapping
std::memset(dataset.begin, 0, dataset.length);
std::memset(dataset.begin, 0, dataset.length * sizeof(float));
return std::move(dataset);
}

Expand Down

0 comments on commit e70d6a8

Please sign in to comment.