From 09ec67182a26d24174a0924baf58c6d14bcdaac2 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Mon, 17 Dec 2018 13:58:29 +0800 Subject: [PATCH] fix QCOMPARE link error --- test/test_ipc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_ipc.cpp b/test/test_ipc.cpp index 8e9e1bc..a7ecae1 100644 --- a/test/test_ipc.cpp +++ b/test/test_ipc.cpp @@ -95,9 +95,9 @@ void benchmark_lc() { if (++fini == std::extent::value) { sw.print_elapsed(W, R, Loops); } - std::int64_t sum = 0; + std::uint64_t sum = 0; for (int i : seq) sum += i; - QCOMPARE(sum, acc(1, Loops) * std::extent::value); + QCOMPARE(sum, acc(1, Loops) * std::extent::value); }); }