Fix narrowing error in PrependVarIntSize

This commit is contained in:
Joshua Ashton 2020-07-28 05:52:13 +01:00
parent 6bef4cb4dc
commit ecf93ddede
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ namespace Feather::Network
uint8_t sizeBytes[VARINT_MAX_SIZE];
// compute the size of the packet excluding the size marker
int value = m_data.size() - VARINT_MAX_SIZE;
int value = int(m_data.size() - VARINT_MAX_SIZE);
int index = 0;
// perform WriteVarInt into the static buffer sizeBytes