From 18146b1bab842ee41df1c2a5b72a991f2e1685f5 Mon Sep 17 00:00:00 2001
From: Alberto Massari <amassari@apache.org>
Date: Tue, 27 Mar 2007 10:09:44 +0000
Subject: [PATCH] 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
---
 src/xercesc/util/XMLBigDecimal.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xercesc/util/XMLBigDecimal.cpp b/src/xercesc/util/XMLBigDecimal.cpp
index 73ae1231c..eb5ad291b 100644
--- a/src/xercesc/util/XMLBigDecimal.cpp
+++ b/src/xercesc/util/XMLBigDecimal.cpp
@@ -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;
-- 
GitLab