mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:19:16 +02:00
* Fix bug #0034288, wrong check when converting floats
git-svn-id: trunk@39758 -
This commit is contained in:
parent
1602d3743c
commit
8307e46e4b
@ -1967,7 +1967,7 @@ begin
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
Val(CurrentToken,X,C);
|
Val(CurrentToken,X,C);
|
||||||
If (I=0) then
|
If (C=0) then
|
||||||
Result:=TFPConstExpression.CreateFloat(X)
|
Result:=TFPConstExpression.CreateFloat(X)
|
||||||
else
|
else
|
||||||
ParserError(Format(SErrInvalidFloat,[CurrentToken]));
|
ParserError(Format(SErrInvalidFloat,[CurrentToken]));
|
||||||
|
Loading…
Reference in New Issue
Block a user