Skip to content
Snippets Groups Projects
Commit 18146b1b authored by Alberto Massari's avatar Alberto Massari
Browse files

A decimal value of 0.0 was treated as a positive number, so it was different from 0

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@522853 13f79535-47bb-0310-9956-ffa450edef68
parent 80ba7ac3
No related branches found
No related tags found
No related merge requests found
......@@ -301,6 +301,9 @@ void XMLBigDecimal::parseDecimal(const XMLCh* const toParse
fractDigits--;
totalDigits--;
}
// 0.0 got past the check for zero because of the decimal point, so we need to double check it here
if(totalDigits==0)
sign = 0;
*retPtr = chNull; //terminated
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment