From: Lucas De Marchi Date: Tue, 24 Mar 2015 02:47:23 +0000 (-0300) Subject: util: use UINT64_MAX X-Git-Tag: v21~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8c73b86091f9ab3a39d80f80e4258e4c039a27d;p=platform%2Fupstream%2Fkmod.git 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. --- 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; }