Skip to content

Commit

Permalink
Berry fix index accessor for rean only bytes (#22193)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored Sep 23, 2024
1 parent f3aed72 commit 2d55459
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/libesp32/berry/src/be_byteslib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,6 @@ static int m_item(bvm *vm)
{
int argc = be_top(vm);
buf_impl attr = bytes_check_data(vm, 0); /* we reserve 4 bytes anyways */
check_ptr_modifiable(vm, &attr);
if (argc >=2 && be_isint(vm, 2)) { /* single byte */
int index = be_toint(vm,2);
if (index < 0) {
Expand Down

0 comments on commit 2d55459

Please sign in to comment.