mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add more test coverage
This commit is contained in:
@@ -406,13 +406,16 @@ static Section *getSection(
|
||||
bank = sectionTypeInfo[type].firstBank;
|
||||
}
|
||||
|
||||
// This should be redundant, as the parser guarantees that `AlignmentSpec` will be valid.
|
||||
if (alignOffset >= alignSize) {
|
||||
// LCOV_EXCL_START
|
||||
error(
|
||||
"Alignment offset (%" PRIu16 ") must be smaller than alignment size (%" PRIu32 ")",
|
||||
alignOffset,
|
||||
alignSize
|
||||
);
|
||||
alignOffset = 0;
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
|
||||
if (org != UINT32_MAX) {
|
||||
|
||||
Reference in New Issue
Block a user