Add static cast to WriteVarInt
This commit is contained in:
parent
c19b051bee
commit
cb72973db2
|
@ -47,8 +47,9 @@ namespace Feather
|
|||
}
|
||||
|
||||
template <typename Int = int32_t>
|
||||
inline void WriteVarInt(Int value)
|
||||
inline void WriteVarInt(Int val)
|
||||
{
|
||||
int32_t value = static_cast<int32_t>(val);
|
||||
do {
|
||||
uint8_t temp = uint8_t(value & 0b01111111);
|
||||
value >>= 7;
|
||||
|
|
Loading…
Reference in New Issue