mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Consistently use uppercase hex digits
This commit is contained in:
@@ -1945,7 +1945,7 @@ z80_ldio : T_Z80_LDH T_MODE_A T_COMMA op_mem_ind {
|
||||
|
||||
c_ind : T_LBRACK T_MODE_C T_RBRACK
|
||||
| T_LBRACK relocexpr T_OP_ADD T_MODE_C T_RBRACK {
|
||||
if (!rpn_isKnown(&$2) || $2.val != 0xff00)
|
||||
if (!rpn_isKnown(&$2) || $2.val != 0xFF00)
|
||||
error("Expected constant expression equal to $FF00 for \"$ff00+c\"\n");
|
||||
}
|
||||
;
|
||||
|
||||
@@ -161,7 +161,7 @@ static unsigned int mergeSectUnion(struct Section *sect, enum SectionType type,
|
||||
!= (sect->alignOfs & mask(alignment))) {
|
||||
fail("Section already declared with incompatible %u"
|
||||
"-byte alignment (offset %" PRIu16 ")\n",
|
||||
1u << sect->align, sect->alignOfs);
|
||||
1U << sect->align, sect->alignOfs);
|
||||
} else if (alignment > sect->align) {
|
||||
// If the section is not fixed, its alignment is the largest of both
|
||||
sect->align = alignment;
|
||||
@@ -212,7 +212,7 @@ static unsigned int mergeFragments(struct Section *sect, enum SectionType type,
|
||||
} else if ((curOfs & mask(sect->align)) != (sect->alignOfs & mask(alignment))) {
|
||||
fail("Section already declared with incompatible %u"
|
||||
"-byte alignment (offset %" PRIu16 ")\n",
|
||||
1u << sect->align, sect->alignOfs);
|
||||
1U << sect->align, sect->alignOfs);
|
||||
} else if (alignment > sect->align) {
|
||||
// If the section is not fixed, its alignment is the largest of both
|
||||
sect->align = alignment;
|
||||
|
||||
Reference in New Issue
Block a user