From ab903e904fa4b994497bff231447db49d7040fa4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 3 Nov 2021 23:39:44 +0100 Subject: fix --- util.c | 6 ++---- util.h | 2 +- 2 files changed, 3 insertions(+), 5 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; } diff --git a/util.h b/util.h index 18fb507..5f948d9 100644 --- a/util.h +++ b/util.h @@ -2,6 +2,6 @@ #define UTIL_H typedef enum {OPERATOR, DOUBLE, FUNCTION} TYPE; -int discriminate(char *s); +TYPE discriminate(char *s); #endif -- cgit 1.4.1-2-gfad0