diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c index 555c445..c4dd940 100644 --- a/util.c +++ b/util.c @@ -24,9 +24,7 @@ int is_operator(char *s) { } TYPE discriminate(char *s) { - if (is_decimal(s)) { - return DOUBLE; - } else if (is_operator(s)) { + if (is_operator(s)) { return OPERATOR; - } else return INT; + } else return DOUBLE; } |