fix problems with negative numbers (sf.net id #2644593) (thanks Zhoushen Huang)
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 15 Mar 2009 16:09:35 +0000 (17:09 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 15 Mar 2009 16:09:35 +0000 (17:09 +0100)
src/algebra.c

index 56b889a..78654f5 100644 (file)
@@ -134,6 +134,8 @@ enum arg_type get_arg_type(const char *arg)
        if (*p == '"' && *e == '"')
                return ARG_STRING;
 
+       if (*p == '-')  //allow negative values
+               p++;
        while (p != e) {
                if (!isdigit(*p))
                        break;