From 20e06f45c037d0943d58e6eb1d8b4f4f602032f0 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 1 Nov 2019 08:48:56 +0100 Subject: [PATCH] util: removes warning about double conversion From clang 10 : implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 --- src/util-misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-misc.c b/src/util-misc.c index c706215a8f..761960b928 100644 --- a/src/util-misc.c +++ b/src/util-misc.c @@ -209,7 +209,7 @@ int ParseSizeStringU64(const char *size, uint64_t *res) if (r < 0) return r; - if (temp_res > UINT64_MAX) + if (temp_res > (double) UINT64_MAX) return -1; *res = temp_res; -- 2.47.2