Fix update to count width in GetAllMappings

This commit is contained in:
Ryan Huffman 2017-08-31 14:30:00 -07:00
parent 0cd8a5cd41
commit d2c7235fed
2 changed files with 2 additions and 2 deletions

View file

@ -529,7 +529,7 @@ void AssetServer::handleGetMappingOperation(ReceivedMessage& message, SharedNode
void AssetServer::handleGetAllMappingOperation(ReceivedMessage& message, SharedNodePointer senderNode, NLPacketList& replyPacket) {
replyPacket.writePrimitive(AssetServerError::NoError);
uint32_t count = _fileMappings.size();
uint32_t count = (uint32_t)_fileMappings.size();
replyPacket.writePrimitive(count);

View file

@ -131,7 +131,7 @@ void GetAllMappingsRequest::doStart() {
if (!_error) {
int numberOfMappings;
uint32_t numberOfMappings;
message->readPrimitive(&numberOfMappings);
for (auto i = 0; i < numberOfMappings; ++i) {
auto path = message->readString();