]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a warning about long to double conversion 12283/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 Dec 2022 16:43:12 +0000 (17:43 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 Dec 2022 16:43:12 +0000 (17:43 +0100)
commitc61deffd3a086da3071b15804dfbe0a343050dd3
tree20b1fd5617c6e3ba8f48702d4dcd5c5c535f397b
parentc222a568eeee2b5f39e819a3d02828b775d1b8fe
dnsdist: Fix a warning about long to double conversion

```
dnsdist-backend.cc:601:61: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion]
      if (backOffCoeffTmp != HUGE_VAL && backOffCoeffTmp <= std::numeric_limits<time_t>::max()) {
                                                         ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
pdns/dnsdistdist/dnsdist-backend.cc