mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 02:56:55 +02:00
Fix update to count width in GetAllMappings
This commit is contained in:
parent
0cd8a5cd41
commit
d2c7235fed
2 changed files with 2 additions and 2 deletions
|
@ -529,7 +529,7 @@ void AssetServer::handleGetMappingOperation(ReceivedMessage& message, SharedNode
|
||||||
void AssetServer::handleGetAllMappingOperation(ReceivedMessage& message, SharedNodePointer senderNode, NLPacketList& replyPacket) {
|
void AssetServer::handleGetAllMappingOperation(ReceivedMessage& message, SharedNodePointer senderNode, NLPacketList& replyPacket) {
|
||||||
replyPacket.writePrimitive(AssetServerError::NoError);
|
replyPacket.writePrimitive(AssetServerError::NoError);
|
||||||
|
|
||||||
uint32_t count = _fileMappings.size();
|
uint32_t count = (uint32_t)_fileMappings.size();
|
||||||
|
|
||||||
replyPacket.writePrimitive(count);
|
replyPacket.writePrimitive(count);
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ void GetAllMappingsRequest::doStart() {
|
||||||
|
|
||||||
|
|
||||||
if (!_error) {
|
if (!_error) {
|
||||||
int numberOfMappings;
|
uint32_t numberOfMappings;
|
||||||
message->readPrimitive(&numberOfMappings);
|
message->readPrimitive(&numberOfMappings);
|
||||||
for (auto i = 0; i < numberOfMappings; ++i) {
|
for (auto i = 0; i < numberOfMappings; ++i) {
|
||||||
auto path = message->readString();
|
auto path = message->readString();
|
||||||
|
|
Loading…
Reference in a new issue