Skip to content

Commit

Permalink
Added comment to track the -1
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Aug 2, 2022
1 parent b9c34c7 commit 7ad24fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compiler/src/engine/trap/frame_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ pub fn register(
) in finished_functions.iter()
{
let start = **start as usize;
// end is "last byte" of the function code
let end = start + len - 1;
min = cmp::min(min, start);
max = cmp::max(max, end);
Expand Down

0 comments on commit 7ad24fc

Please sign in to comment.