Correct four code style issues

This commit is contained in:
ISSOtm
2020-03-07 18:08:17 +01:00
parent 48ad3973a9
commit 0d31afaff8
4 changed files with 6 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ struct ImageOptions {
struct PNGImage {
png_struct *png;
png_info *info;
png_byte **data;
int width;
int height;

View File

@@ -49,7 +49,7 @@ uint32_t unionStart[128], unionSize[128];
extern int yydebug;
#endif
FILE *dependfile;
FILE * dependfile;
bool oGeneratedMissingIncludes;
bool oFailedOnMissingInclude;
bool oGeneratePhonyDeps;

View File

@@ -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);

View File

@@ -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;
}