fexc: accept negative values in .fex files

closes #16
This commit is contained in:
Bartosz J 2013-03-26 13:02:38 +01:00 committed by Alejandro Mery
parent c749f83060
commit 68a4f6f231

View File

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