Commit b562811b authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed empty fractional+integral parts while parsing real value of string

parent 9cba908a
......@@ -775,6 +775,10 @@ public:
error = WrongExpForm;
return 0.0;
}
if (sIntegral.length()+sFractional.length()==0) {
error = sExponenta.length()>0? WrongExpForm : WrongReal;
return 0.0;
}
int fractionalLength = sFractional.length();
for (int i=sFractional.length()-1; i>=0; i--) {
Char ch = sFractional.at(i);
......
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