]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix clang-10 build [-Wimplicit-int-float-conversion] (#582)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 30 Mar 2020 21:22:45 +0000 (21:22 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 31 Mar 2020 16:35:45 +0000 (16:35 +0000)
commitf1e130c5ff1322dcaacb22ceaf1ecc4d468f9d21
treeb90ad1729e59ca1fbffd42273625ee179f7bccec
parent2f8abb64250ed362103ae101bfe25689a51f47f7
Fix clang-10 build [-Wimplicit-int-float-conversion] (#582)

Converting std::chrono::nanoseconds::rep to double may lead to rounding
errors [-Wimplicit-int-float-conversion]. Use explicit cast to signal
that we want to ignore those errors in the max-value checking context.

Also polished CheckTimeValue()-related code.
src/cache_cf.cc