You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2008/03/12 22:49:40 UTC

svn commit: r636526 - /xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp

Author: jasons
Date: Wed Mar 12 14:49:38 2008
New Revision: 636526

URL: http://svn.apache.org/viewvc?rev=636526&view=rev
Log:
64 bit compile issues: unsigned int -> XMLSize_t

Modified:
    xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp

Modified: xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp?rev=636526&r1=636525&r2=636526&view=diff
==============================================================================
--- xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp (original)
+++ xerces/c/trunk/swig/perl/Transcoder/Transcoder.cpp Wed Mar 12 14:49:38 2008
@@ -69,18 +69,18 @@
   }
 
   SV *output;
-  unsigned int charsEaten = 0;
+  XMLSize_t charsEaten = 0;
   int length  = XMLString::stringLen(input);            // string length
   // use +1 to make room for the '\0' at the end of the string
   // in the pathological case when each character of the string 
   // is UTF8_MAXLEN bytes long
   XMLByte* res = new XMLByte[(length * UTF8_MAXLEN) + 1]; // output string
 
-  unsigned int total_chars =
+  XMLSize_t total_chars =
     UTF8_TRANSCODER->transcodeTo((const XMLCh*) input, 
-				   (unsigned int) length,
+				   (XMLSize_t) length,
 				   (XMLByte*) res,
-				   (unsigned int) (length*UTF8_MAXLEN),
+				   (XMLSize_t) (length*UTF8_MAXLEN),
 				   charsEaten,
 				   XMLTranscoder::UnRep_Throw
 				   );
@@ -126,14 +126,14 @@
 #endif
 
     if (SvUTF8(input)) {
-	unsigned int charsEaten = 0;
+	XMLSize_t charsEaten = 0;
         unsigned char* sizes = new unsigned char[length+1];
         output = new XMLCh[length+1];
-	unsigned int chars_stored = 
+	XMLSize_t chars_stored = 
 	    UTF8_TRANSCODER->transcodeFrom((const XMLByte*) ptr,
-					   (unsigned int) length,
+					   (XMLSize_t) length,
 					   (XMLCh*) output, 
-					   (unsigned int) length,
+					   (XMLSize_t) length,
 					   charsEaten,
 					   (unsigned char*)sizes
 					   );



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