]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 13 Apr 2020 13:53:58 +0000 (01:53 +1200)
commitce17bf7022db9b3bb34eea64cfa56998958e7e8a
treea4e2bbde76cf20e80f008a15cfbb464f1a5cfd83
parentbcfd5a732c468da12498c2a229feba6bef0c3ea7
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