You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2008/01/22 17:20:18 UTC
svn commit: r614235 -
/xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp
Author: amassari
Date: Tue Jan 22 08:20:17 2008
New Revision: 614235
URL: http://svn.apache.org/viewvc?rev=614235&view=rev
Log:
Fixed 64 bit issues
Modified:
xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp
Modified: xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp?rev=614235&r1=614234&r2=614235&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp (original)
+++ xerces/c/trunk/src/xercesc/internal/XSerializeEngine.cpp Tue Jan 22 08:20:17 2008
@@ -41,7 +41,7 @@
const bool XSerializeEngine::toWriteBufferLen = true;
const bool XSerializeEngine::toReadBufferLen = true;
-static const int noDataFollowed = -1;
+static const unsigned long noDataFollowed = (unsigned long)-1;
static const XSerializeEngine::XSerializedObjectId_t fgNullObjectTag = 0; // indicating null ptrs
static const XSerializeEngine::XSerializedObjectId_t fgNewClassTag = 0xFFFFFFFF; // indicating new class
@@ -488,7 +488,9 @@
/***
* Check if any data written
***/
- *this>>(unsigned long&)bufferLen;
+ unsigned long tmp;
+ *this>>tmp;
+ bufferLen=tmp;
if (bufferLen == noDataFollowed)
{
@@ -500,7 +502,8 @@
if (toReadBufLen)
{
- *this>>(unsigned long&)dataLen;
+ *this>>tmp;
+ dataLen=tmp;
}
else
{
@@ -520,7 +523,9 @@
/***
* Check if any data written
***/
- *this>>(unsigned long&)bufferLen;
+ unsigned long tmp;
+ *this>>tmp;
+ bufferLen=tmp;
if (bufferLen == noDataFollowed)
{
toRead = 0;
@@ -531,7 +536,8 @@
if (toReadBufLen)
{
- *this>>(unsigned long&)dataLen;
+ *this>>tmp;
+ dataLen=tmp;
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org