From 6015fc5694bc8ffdcdf85172d9886a553a59c114 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Wed, 27 May 2009 00:06:09 +0000 Subject: [PATCH] Fixed return of floating point tokens git-svn-id: http://picoc.googlecode.com/svn/trunk@289 21eae674-98b7-11dd-bd71-f92a316d2d60 --- lex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lex.c b/lex.c index a007a1c..2a7b479 100644 --- a/lex.c +++ b/lex.c @@ -183,6 +183,8 @@ enum LexToken LexGetNumber(struct LexState *Lexer, struct Value *Value) FPResult *= pow((double)Base, (double)Result); } + Value->Val->FP = FPResult; + return TokenFPConstant; #else return ResultToken;