Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Jan 26, 2024
1 parent 9ded6cd commit d27d94e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/units/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,13 @@ TEST(math, neg) {
}
}

auto cf = wjr::addc_n(c.data(), a.data(), b.data(), n, 0u);
auto cf = [&]() -> uint64_t {
if (!n) {
return 0u;
}
return wjr::addc_n(c.data(), a.data(), b.data(), n, 0u);
}();

if (n != m) {
WJR_ASSERT(cf);
} else {
Expand Down

0 comments on commit d27d94e

Please sign in to comment.