From bdcc02a5ea2d165c638d667978e8e2cf7462558a Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Mon, 5 Jul 2021 16:59:06 +0000 Subject: Turn integers and floats into seperate term types --- parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser.c') diff --git a/parser.c b/parser.c index 0e4a175..0acf3b6 100644 --- a/parser.c +++ b/parser.c @@ -169,11 +169,11 @@ term(void) match(VarTok); break; case IntTok: - result = mknumber(NumberInt, lookahead.ival, 0); + result = mkinteger(lookahead.ival); match(IntTok); break; case FloatTok: - result = mknumber(NumberFloat, 0, lookahead.dval); + result = mkfloat(lookahead.dval); match(FloatTok); break; case CommaTok: -- cgit v1.2.3