diff --git a/src/xercesc/dom/impl/DOMNormalizer.cpp b/src/xercesc/dom/impl/DOMNormalizer.cpp
index 737ade2e99cc226750683557a57f743f2c0e0c3a..e6700881bcd5f47f2714737a4f62576279784870 100644
--- a/src/xercesc/dom/impl/DOMNormalizer.cpp
+++ b/src/xercesc/dom/impl/DOMNormalizer.cpp
@@ -203,7 +203,7 @@ DOMNode * DOMNormalizer::normalizeNode(DOMNode *node) const {
         else {
             //this is done in namespace fixup so no need to do it if namespace is on 
             if(attrMap) {
-                for(int i = 0; i < attrMap->getLength(); i++) {
+                for(XMLSize_t i = 0; i < attrMap->getLength(); i++) {
                     attrMap->item(i)->normalize();
                 }
             }