diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2023-06-02 13:46:22 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahooinc.com> | 2023-06-02 13:46:22 +0200 |
commit | 4868677b8b205324a492f775e7756d4ae88c3f7a (patch) | |
tree | ef406dca92bd8a58d2ac7030417b55bfd02bc469 | |
parent | ad9ca41f6d7e54abbce9b279d341f0efaa802781 (diff) |
Pass two int64_t values to std::min
-rw-r--r-- | vespalib/src/vespa/vespalib/testkit/time_bomb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cstdint> #include <vespa/log/log.h> 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)) { |