Commit 3e0a8cb
committed
common-utils.c: fix clang warning
Fix:
common-utils.c:1590:10: warning: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Wimplicit-const-int-float-conversion]
1590 | if ((UINT64_MAX - value) < 0) {
| ^~~~~~~~~~ ~
/usr/include/stdint.h:119:23: note: expanded from macro 'UINT64_MAX'
119 | # define UINT64_MAX (__UINT64_C(18446744073709551615))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdint.h:96:25: note: expanded from macro '__UINT64_C'
96 | # define __UINT64_C(c) c ## UL
| ^~~~~~~
<scratch space>:38:1: note: expanded from here
38 | 18446744073709551615UL
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Yaniv Kaul <[email protected]>1 parent 75e8a4c commit 3e0a8cb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1587 | 1587 | | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | | - | |
| 1590 | + | |
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
| |||
0 commit comments