util: removes warning about double conversion

From clang 10 :
implicit conversion from 'unsigned long' to 'double' changes value
from 18446744073709551615 to 18446744073709551616
pull/4393/head
Philippe Antoine 6 years ago committed by Victor Julien
parent 502a8b5fb3
commit 20e06f45c0

@ -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;

Loading…
Cancel
Save