In a sake of portability we should better use
UINT64_C instead of open-coded ULL postfix.
[ BR2938449 ]
Reported-by: Alexander Ilyin <dragity@mail.ru>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* cheat: since we know that all radices we use are even, we
* can divide 2**63 by radix/2 instead.
*/
- checklimit = 0x8000000000000000ULL / (radix >> 1);
+ checklimit = UINT64_C(0x8000000000000000) / (radix >> 1);
/*
* Calculate the highest allowable value for the last digit of a
str += length;
if (globalbits == 64) {
for (i = 0; i < length; i++) {
- if (charconst & 0xFF00000000000000ULL)
+ if (charconst & UINT64_C(0xFF00000000000000))
*warn = true;
charconst = (charconst << 8) + (uint8_t)*--str;
}