Fixed return of floating point tokens
git-svn-id: http://picoc.googlecode.com/svn/trunk@289 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
6c8d9ba4cb
commit
6015fc5694
2
lex.c
2
lex.c
|
@ -183,6 +183,8 @@ enum LexToken LexGetNumber(struct LexState *Lexer, struct Value *Value)
|
||||||
FPResult *= pow((double)Base, (double)Result);
|
FPResult *= pow((double)Base, (double)Result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Value->Val->FP = FPResult;
|
||||||
|
|
||||||
return TokenFPConstant;
|
return TokenFPConstant;
|
||||||
#else
|
#else
|
||||||
return ResultToken;
|
return ResultToken;
|
||||||
|
|
Loading…
Reference in a new issue