Changed some casts to uint64_t
This commit is contained in:
parent
9483935d64
commit
58ac6ae208
1 changed files with 2 additions and 2 deletions
|
|
@ -193,10 +193,10 @@ namespace fc {
|
|||
uint64_t v = 0; char b = 0; uint8_t by = 0;
|
||||
do {
|
||||
s.get(b);
|
||||
v |= uint32_t(uint8_t(b) & 0x7f) << by;
|
||||
v |= uint64_t(uint8_t(b) & 0x7f) << by;
|
||||
by += 7;
|
||||
} while( uint8_t(b) & 0x80 );
|
||||
vi.value = static_cast<uint32_t>(v);
|
||||
vi.value = static_cast<uint64_t>(v);
|
||||
}
|
||||
|
||||
template<typename Stream, typename T> inline void unpack( Stream& s, const T& vi, uint32_t _max_depth )
|
||||
|
|
|
|||
Loading…
Reference in a new issue