Skip to content

Commit

Permalink
fix bounds warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Dec 26, 2023
1 parent e15f109 commit b00ab52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ namespace serialize
bool SerializeVarint32( uint32_t & value )
{
int i = 0;
uint8_t data[6];
uint8_t data[8];
uint32_t read_value;
do {
if ( m_reader.WouldReadPastEnd( 8 ) )
Expand Down

0 comments on commit b00ab52

Please sign in to comment.