Skip to content

Commit

Permalink
fix: buffer get bool does not increase the index.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahapat committed Nov 9, 2023
1 parent d95a1ba commit d7c2940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ bool buffer_get_bool(const uint8_t *buffer, int32_t *index) {

if (buffer[*index] == 1)
{
index++;
(*index)++;
return true;
}
else
{
index++;
(*index)++;
return false;
}

Expand Down

0 comments on commit d7c2940

Please sign in to comment.