Skip to content

Commit

Permalink
fixup! Add code:get_debug_info/1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Sep 5, 2024
1 parent 7685aa3 commit be3498b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erts/emulator/beam/beam_bif_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@ BIF_RETTYPE code_get_debug_info_1(BIF_ALIST_1)
hp = HAlloc(BIF_P, alloc_size);
hend = hp + alloc_size;

for (i = debug->item_count; i > 0; i--) {
BeamDebugItem* items = &debug->items[i-1];
for (i = debug->item_count-1; i > 0; i--) {
BeamDebugItem* items = &debug->items[i];
Sint32 frame_size = items->frame_size;
Uint num_vars = items->num_vars;
Eterm *tp = items->first + 2 * num_vars - 2;
Expand Down

0 comments on commit be3498b

Please sign in to comment.