projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c0f04b
)
fix problems with negative numbers (sf.net id #2644593) (thanks Zhoushen Huang)
author
Nikolas Garofil
<garo@dunaldi.garofil.be>
Sun, 15 Mar 2009 16:09:35 +0000
(17:09 +0100)
committer
Nikolas Garofil
<garo@dunaldi.garofil.be>
Sun, 15 Mar 2009 16:09:35 +0000
(17:09 +0100)
src/algebra.c
patch
|
blob
|
history
diff --git
a/src/algebra.c
b/src/algebra.c
index
56b889a
..
78654f5
100644
(file)
--- a/
src/algebra.c
+++ b/
src/algebra.c
@@
-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;