Skip to content

Commit

Permalink
Convert type to auto in unit test, to address clang-tidy result.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanWollaeger committed Jul 6, 2021
1 parent b0723d9 commit c17e7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c4/test/tstGatherScatter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void tstDeterminateAllGatherv(UnitTest &ut) {

// check values gathered from each rank (and check on each rank of course)
for (unsigned p = 0; p < number_of_processors; ++p) {
const double p_dbl = static_cast<double>(p);
const auto p_dbl = static_cast<double>(p);
for (unsigned i = 0; i < p; ++i) {
if (!rtt_dsxx::soft_equiv(receive[p][i], p_dbl))
FAILMSG("NOT correct values in allgatherv");
Expand Down

0 comments on commit c17e7c4

Please sign in to comment.