From 4868677b8b205324a492f775e7756d4ae88c3f7a Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 2 Jun 2023 13:46:22 +0200 Subject: Pass two int64_t values to std::min --- vespalib/src/vespa/vespalib/testkit/time_bomb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vespalib/src/vespa/vespalib/testkit/time_bomb.cpp b/vespalib/src/vespa/vespalib/testkit/time_bomb.cpp index 9d4b2ea30c8..a93baac6589 100644 --- a/vespalib/src/vespa/vespalib/testkit/time_bomb.cpp +++ b/vespalib/src/vespa/vespalib/testkit/time_bomb.cpp @@ -1,6 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "time_bomb.h" +#include #include LOG_SETUP(".vespalib.testkit.time_bomb"); @@ -14,7 +15,7 @@ void bomb(Gate &gate, vespalib::duration timeout) { return; } } - size_t countdown = std::min(count_s(timeout), 5l); + size_t countdown = std::min(count_s(timeout), INT64_C(5)); while (countdown > 0) { fprintf(stderr, "...%zu...\n", countdown--); if (gate.await(1s)) { -- cgit v1.2.3