Consistently use UINT32_MAX, not -1, for uint32_t values

This commit is contained in:
Rangi42
2024-12-10 19:47:23 -05:00
parent a8ec9228d4
commit b18cfe6bdb
3 changed files with 3 additions and 3 deletions

View File

@@ -1702,7 +1702,7 @@ sect_org:
}
| LBRACK uconst RBRACK {
$$ = $2;
if ($$ < 0 || $$ >= 0x10000) {
if ($$ < 0 || $$ > 0xFFFF) {
::error("Address $%x is not 16-bit\n", $$);
$$ = -1;
}