diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-03-23 23:47:23 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-03-23 23:47:23 -0300 |
commit | a8c73b86091f9ab3a39d80f80e4258e4c039a27d (patch) | |
tree | 2310f1cc0e46f2caf5a5fc884319b9857394484f | |
parent | 9cc8a20d34d20ff4ed607c241d2e6bb263890e3d (diff) | |
download | kmod-a8c73b86091f9ab3a39d80f80e4258e4c039a27d.tar.gz |
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.
-rw-r--r-- | shared/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |