From 68a4f6f2312d52ca4a2a6cb378681f439c60d44d Mon Sep 17 00:00:00 2001 From: Bartosz J Date: Tue, 26 Mar 2013 13:02:38 +0100 Subject: [PATCH] fexc: accept negative values in .fex files closes #16 --- script_fex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script_fex.c b/script_fex.c index 50e8d2b..361e86b 100644 --- a/script_fex.c +++ b/script_fex.c @@ -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);