From a8c73b86091f9ab3a39d80f80e4258e4c039a27d Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 23 Mar 2015 23:47:23 -0300 Subject: [PATCH] util: use UINT64_MAX Since we are checking the size of long and long long, use UINT64_MAX in the fallback to be sure thre right size is being used. --- shared/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/util.h b/shared/util.h index 6f602d3..c6a31df 100644 --- a/shared/util.h +++ b/shared/util.h @@ -86,5 +86,5 @@ static inline bool addu64_overflow(uint64_t a, uint64_t b, uint64_t *res) #endif #endif *res = a + b; - return ULLONG_MAX - a < b; + return UINT64_MAX - a < b; } -- 2.7.4