Fix a typo

This commit is contained in:
Rangi committed 2026-10-15 10:21:42 -04:00
1 parent c5fe5f0762
commit 451cf69f7d
1 file changed
+1 -1
+1 -1
View File
@@ -582,7 +582,7 @@ static void applyFilePatches(Section &section, Section &dataSection) {
rpnErrorAt(patch.rpn, "PC has no value outside of a section");
dataSection.data[offset] = 0;
} else {
// A `jr` is *encoded* in ROM as a 1-byte (8-bit) offset, so here `typeSize == 8`,
// A `jr` is *encoded* in ROM as a 1-byte (8-bit) offset, so here `typeSize == 1`,
// but the object's *value* size is a 16-bit absolute address, so we pass 16 here.
checkPatchSize(patch.rpn, value, 16);
// Offset is relative to the byte *after* the operand