Fixed uint8_t displaying as char

This commit is contained in:
Jordan Cristiano 2015-05-15 00:37:14 -04:00
parent ce51a094c2
commit 3752aecfa4
6 changed files with 7 additions and 6 deletions

View File

@ -31,6 +31,7 @@ namespace NetHandlers
void Net_SignonState_ToString_Internal(std::ostringstream& out, NetMsg::Net_SignonState* data)
{
out << "net_SignonState: state " << data->signonState << ", count " << data->spawnCount;
out << "net_SignonState: state " << static_cast<uint32_t>(data->signonState)
<< ", count " << data->spawnCount;
}
}

View File

@ -99,6 +99,6 @@ namespace NetHandlers
<< ", entries " << data->numEntries
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits)
<< " userdatasize " << data->userDataSize
<< " userdatabits " << data->userDataSizeBits;
<< " userdatabits " << static_cast<uint32_t>(data->userDataSizeBits);
}
}

View File

@ -52,7 +52,7 @@ namespace NetHandlers
void SVC_Sounds_ToString_Internal(std::ostringstream& out, NetMsg::SVC_Sounds* data)
{
out << "svc_Sounds: number " << data->numSounds
out << "svc_Sounds: number " << static_cast<uint32_t>(data->numSounds)
<< (data->reliableSound ? ", reliable" : "")
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
}

View File

@ -37,7 +37,7 @@ namespace NetHandlers
void SVC_UserMessage_ToString_Internal(std::ostringstream& out, NetMsg::SVC_UserMessage* data)
{
out << "svc_UserMessage: type " << data->msgType
out << "svc_UserMessage: type " << static_cast<uint32_t>(data->msgType)
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
}
}

View File

@ -36,7 +36,7 @@ namespace NetHandlers
void SVC_VoiceData_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceData* data)
{
out << "svc_VoiceData: client " << data->fromClientIndex
out << "svc_VoiceData: client " << static_cast<uint32_t>(data->fromClientIndex)
<< ", bytes " << math::BitsToBytes(data->dataLengthInBits);
}
}

View File

@ -31,6 +31,6 @@ namespace NetHandlers
void SVC_VoiceInit_ToString_Internal(std::ostringstream& out, NetMsg::SVC_VoiceInit* data)
{
out << "svc_VoiceInit: codec \"" << data->voiceCodec
<< "\", qualitty " << data->quality;
<< "\", qualitty " << static_cast<uint32_t>(data->quality);
}
}