mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Correct four code style issues
This commit is contained in:
@@ -55,6 +55,7 @@ struct ImageOptions {
|
||||
struct PNGImage {
|
||||
png_struct *png;
|
||||
png_info *info;
|
||||
|
||||
png_byte **data;
|
||||
int width;
|
||||
int height;
|
||||
|
||||
@@ -407,7 +407,8 @@ void out_PCRelByte(struct Expression *expr)
|
||||
int16_t offset = expr->nVal - address;
|
||||
|
||||
if (offset < -128 || offset > 127) {
|
||||
yyerror("jr target out of reach (expected -129 < %d < 128)", offset);
|
||||
yyerror("jr target out of reach (expected -129 < %d < 128)",
|
||||
offset);
|
||||
out_AbsByte(0);
|
||||
} else {
|
||||
out_AbsByte(offset);
|
||||
|
||||
@@ -430,7 +430,8 @@ void obj_ReadFile(char const *fileName)
|
||||
section->symbols = malloc(sizeof(*section->symbols)
|
||||
* nbSymPerSect[i]);
|
||||
if (!section->symbols)
|
||||
err(1, "%s: Couldn't link to symbols", fileName);
|
||||
err(1, "%s: Couldn't link to symbols",
|
||||
fileName);
|
||||
} else {
|
||||
section->symbols = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user