Commit 5e28941d authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed againg int:=real error message

parent 04fbd196
......@@ -1495,7 +1495,10 @@ void SyntaxAnalizerPrivate::parseAssignment(int str)
}
}
}
if (isRealConstant)
bool isBigIntegerConstant = !isRealConstant &&
rightExpr->kind==AST::ExprConst &&
rightExpr->baseType.kind==AST::TypeReal;
if (isBigIntegerConstant)
{
// Constant became real because of big integer representation
err = _("Integer constant too big");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment