From 74a0fffdc09b079b12dd693f9d4b830efcf9e0db Mon Sep 17 00:00:00 2001
From: James David Berry <jberry@apache.org>
Date: Sun, 25 Jan 2004 23:23:26 +0000
Subject: [PATCH] Step around CodeWarrior compiler warning

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175704 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/XMLDateTime.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/xercesc/util/XMLDateTime.cpp b/src/xercesc/util/XMLDateTime.cpp
index 75c7b04c1..88cee656c 100644
--- a/src/xercesc/util/XMLDateTime.cpp
+++ b/src/xercesc/util/XMLDateTime.cpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.24  2004/01/25 23:23:26  jberry
+ * Step around CodeWarrior compiler warning
+ *
  * Revision 1.23  2004/01/13 19:50:56  peiyongz
  * remove parseContent()
  *
@@ -1538,7 +1541,7 @@ XMLCh* XMLDateTime::getDateTimeCanonicalRepresentation(MemoryManager* const memM
     //      2+  8       1      8   1
     //
     int additionalLen = 0;
-    if(additionalLen = fillYearString(retPtr, CentYear))
+    if (0 != (additionalLen = fillYearString(retPtr, CentYear)))
     {
         // very bad luck; have to resize the buffer...
         XMLCh *tmpBuf = (XMLCh*) toUse->allocate( (additionalLen+21+miliSecondsLen +2) * sizeof(XMLCh));
-- 
GitLab