Commit 68a4f6f2 authored by Bartosz J's avatar Bartosz J Committed by Alejandro Mery
Browse files

fexc: accept negative values in .fex files

closes #16
parent c749f830
...@@ -326,7 +326,7 @@ int script_parse_fex(FILE *in, const char *filename, struct script *script) ...@@ -326,7 +326,7 @@ int script_parse_fex(FILE *in, const char *filename, struct script *script)
perror("malloc"); perror("malloc");
} }
} }
} else if (isdigit(*p)) { } else if (isdigit(*p) || (*p == '-' && isdigit(*(p+1)))) {
long long v = 0; long long v = 0;
char *end; char *end;
v = strtoll(p, &end, 0); v = strtoll(p, &end, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment