mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
fix QCOMPARE link error
This commit is contained in:
parent
1e42cd794c
commit
09ec67182a
@ -95,9 +95,9 @@ void benchmark_lc() {
|
|||||||
if (++fini == std::extent<decltype(r_trd)>::value) {
|
if (++fini == std::extent<decltype(r_trd)>::value) {
|
||||||
sw.print_elapsed(W, R, Loops);
|
sw.print_elapsed(W, R, Loops);
|
||||||
}
|
}
|
||||||
std::int64_t sum = 0;
|
std::uint64_t sum = 0;
|
||||||
for (int i : seq) sum += i;
|
for (int i : seq) sum += i;
|
||||||
QCOMPARE(sum, acc<std::int64_t>(1, Loops) * std::extent<decltype(w_trd)>::value);
|
QCOMPARE(sum, acc<std::uint64_t>(1, Loops) * std::extent<decltype(w_trd)>::value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user