remove compiler warning on 32-bit systems
commit 421d95b3ea
introduced a compiler
warning on 32-bit systems about casting a pointer to an integer of a
different size. This commit removes the warning by casting the arguments
to snprintf in the same manner as the original VERIFY3_IMPL macro.
This commit is contained in:
parent
a84164e81c
commit
80819cc01e
|
@ -69,7 +69,8 @@ extern void __assert(const char *, const char *, int);
|
|||
char *__buf = alloca(256); \
|
||||
(void) snprintf(__buf, 256, "%s %s %s (0x%llx %s 0x%llx)", \
|
||||
#LEFT, #OP, #RIGHT, \
|
||||
(u_longlong_t)(LEFT), #OP, (u_longlong_t)(RIGHT)); \
|
||||
(u_longlong_t)((TYPE)(LEFT)), #OP, \
|
||||
(u_longlong_t)((TYPE)(RIGHT))); \
|
||||
__assert(__buf, __FILE__, __LINE__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue