diff --git a/include/misc.h b/include/misc.h index 3217c39a..5318a19b 100644 --- a/include/misc.h +++ b/include/misc.h @@ -52,7 +52,7 @@ #endif #ifndef bit -#define bit(x) (1<<(x)) +#define bit(x) (1U<<(x)) #endif #define minutes(x) (60*(x)) diff --git a/src/lib/common/ef_verify.c b/src/lib/common/ef_verify.c index f1159d67..59f72fcb 100644 --- a/src/lib/common/ef_verify.c +++ b/src/lib/common/ef_verify.c @@ -97,7 +97,7 @@ verify_tabref(int type, int row, struct castr *ca, int idx, long val) if (CANT_HAPPEN(ca_sym != symbol_ca)) return -1; for (i = 0; i < (int)sizeof(long) * 8; i++) { - if (val & (1L << i)) { + if (val & (1UL << i)) { if (!symbol_by_value(1L << i, ef_ptr(tabno, 0))) { verify_fail(type, row, ca, idx, "bit %d is not in symbol table %s",