diff --git a/src/libcore/sched_remote.cpp b/src/libcore/sched_remote.cpp index b6fc81e3..a46ebe14 100644 --- a/src/libcore/sched_remote.cpp +++ b/src/libcore/sched_remote.cpp @@ -168,7 +168,7 @@ void RemoteWorker::run() { resStream->getPos() / 1024); m_memStream->writeShort(StreamBackend::ENewResource); m_memStream->writeInt(resID); - m_memStream->writeUInt((unsigned int) resStream->getPos()); + m_memStream->writeSize(resStream->getPos()); m_memStream->write(resStream->getData(), resStream->getPos()); } @@ -183,7 +183,7 @@ void RemoteWorker::run() { resStream->getPos() / 1024); m_memStream->writeShort(StreamBackend::ENewMultiResource); m_memStream->writeInt(resID); - m_memStream->writeUInt((unsigned int) resStream->getPos()); + m_memStream->writeSize(resStream->getPos()); m_memStream->write(resStream->getData(), resStream->getPos()); } @@ -390,7 +390,7 @@ void StreamBackend::run() { break; case ENewResource: { int id = m_stream->readInt(); - size_t size = m_stream->readUInt(); + size_t size = m_stream->readSize(); ref manager = new InstanceManager(); ref mstream = new MemoryStream(size); mstream->setByteOrder(Stream::ENetworkByteOrder); @@ -402,7 +402,7 @@ void StreamBackend::run() { break; case ENewMultiResource: { int id = m_stream->readInt(); - size_t size = m_stream->readUInt(); + size_t size = m_stream->readSize(); ref manager = new InstanceManager(); ref mstream = new MemoryStream(size); mstream->setByteOrder(Stream::ENetworkByteOrder);