mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
compiler.h: add redundant cast to quiet Watcom warning
Add a redundant cast in watcom_switch_hack() to quiet a Watcom warning, and remove open-coded implementation of the Watcom switch hack. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
@@ -259,7 +259,7 @@ size_t strnlen(const char *s, size_t maxlen);
|
||||
|
||||
static inline unsigned int watcom_switch_hack(uint64_t x)
|
||||
{
|
||||
if (x > UINT_MAX)
|
||||
if (x > (uint64_t)UINT_MAX)
|
||||
return BOGUS_CASE;
|
||||
else
|
||||
return (unsigned int)x;
|
||||
|
Reference in New Issue
Block a user