You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ga...@apache.org on 2007/08/21 10:16:25 UTC

svn commit: r568010 - /xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp

Author: gareth
Date: Tue Aug 21 01:16:24 2007
New Revision: 568010

URL: http://svn.apache.org/viewvc?rev=568010&view=rev
Log:
Add explicit type conversion to get rid of a warning. Thanks to Boris Kolpackov

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp?rev=568010&r1=568009&r2=568010&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/internal/XSerializeEngine.hpp Tue Aug 21 01:16:24 2007
@@ -558,16 +558,16 @@
       *
       ***/
     inline 
-    unsigned long   getBufSize()    const; 
+    XMLSize_t   getBufSize()    const;
 
     inline 
-    unsigned long   getBufCur()     const; 
+    XMLSize_t   getBufCur()     const;
 
     inline 
-    unsigned long   getBufCurAccumulated()     const; 
+    XMLSize_t   getBufCurAccumulated()     const;
 
     inline 
-    unsigned long   getBufCount()    const; 
+    XMLSize_t   getBufCount()    const;
 
     void                  trace(char*)     const;
 
@@ -633,11 +633,11 @@
                                 , const XMLExcepts::Codes toThrow)  const;
 
 
-    inline size_t          calBytesNeeded(size_t)  const;
+    inline XMLSize_t          calBytesNeeded(XMLSize_t)  const;
 
-    inline size_t          alignAdjust(size_t)     const;
+    inline XMLSize_t          alignAdjust(XMLSize_t)     const;
 
-    inline void            alignBufCur(size_t);
+    inline void            alignBufCur(XMLSize_t);
 
     // Make XTemplateSerializer friend of XSerializeEngine so that
     // we can call lookupStorePool and lookupLoadPool in the case of
@@ -699,10 +699,10 @@
     BinInputStream*  const                 fInputStream;
     BinOutputStream* const                 fOutputStream;
 
-    unsigned long                          fBufCount;
+    XMLSize_t                              fBufCount;
 
     //buffer
-    const unsigned long                    fBufSize;
+    const XMLSize_t                        fBufSize;
 	XMLByte* const                         fBufStart;
 	XMLByte* const                         fBufEnd; 
     XMLByte*                               fBufCur;
@@ -807,25 +807,25 @@
 }
 
 inline 
-unsigned long XSerializeEngine::getBufSize() const
+XMLSize_t XSerializeEngine::getBufSize() const
 {
     return fBufSize;
 }
 
 inline 
-unsigned long XSerializeEngine::getBufCur() const
+XMLSize_t XSerializeEngine::getBufCur() const
 {
-    return (fBufCur-fBufStart);
+    return XMLSize_t (fBufCur-fBufStart);
 }
 
 inline 
-unsigned long XSerializeEngine::getBufCurAccumulated() const
+XMLSize_t XSerializeEngine::getBufCurAccumulated() const
 {
     return (fBufCount - (isStoring() ? 0: 1)) * fBufSize + (fBufCur-fBufStart);
 }
 
 inline 
-unsigned long XSerializeEngine::getBufCount() const
+XMLSize_t XSerializeEngine::getBufCount() const
 {
     return fBufCount;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org