Skip to content

Commit

Permalink
fexc: accept negative values in .fex files
Browse files Browse the repository at this point in the history
  • Loading branch information
jankowskib authored and amery committed May 25, 2013
1 parent c749f83 commit 68a4f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script_fex.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ int script_parse_fex(FILE *in, const char *filename, struct script *script)
perror("malloc");
}
}
} else if (isdigit(*p)) {
} else if (isdigit(*p) || (*p == '-' && isdigit(*(p+1)))) {
long long v = 0;
char *end;
v = strtoll(p, &end, 0);
Expand Down

0 comments on commit 68a4f6f

Please sign in to comment.