mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 22:04:32 +00:00
Add fail-safe for invalid RPN commands in bad object files
This commit is contained in:
@@ -456,6 +456,11 @@ static int32_t computeRPNExpr(Patch const &patch, std::vector<Symbol> const &fil
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// LCOV_EXCL_START
|
||||
default:
|
||||
fatalAt(patch, "Invalid RPN command $%02x", static_cast<uint32_t>(command));
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
|
||||
pushRPN(value, isError);
|
||||
|
||||
Reference in New Issue
Block a user