]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix the rfc1982LessThan template, it only works properly if the cast is done to a...
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Jul 2019 08:37:19 +0000 (10:37 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Jul 2019 08:37:19 +0000 (10:37 +0200)
commit9a3631021af59677d8522b7bb9ab20560a557239
tree1bbe5b58d0f6a0661733e29a3e1e14319add50ec
parentf24faa22fe60a4c425b12cc755c694326fafa393
Fix the rfc1982LessThan template, it only works properly if the cast is done to a same-sized type.

If we use it for uint8_t or uint64_t it breaks currenty.  Add unit tests while there.
pdns/misc.hh
pdns/test-misc_hh.cc