Fix narrowing error in PrependVarIntSize
This commit is contained in:
parent
6bef4cb4dc
commit
ecf93ddede
|
@ -157,7 +157,7 @@ namespace Feather::Network
|
||||||
uint8_t sizeBytes[VARINT_MAX_SIZE];
|
uint8_t sizeBytes[VARINT_MAX_SIZE];
|
||||||
|
|
||||||
// compute the size of the packet excluding the size marker
|
// 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;
|
int index = 0;
|
||||||
|
|
||||||
// perform WriteVarInt into the static buffer sizeBytes
|
// perform WriteVarInt into the static buffer sizeBytes
|
||||||
|
|
Loading…
Reference in New Issue