Skip to content
Prev Previous commit
Fix crash if stub doesn't need to be moved
(I wasn't updating trace_length in this case.)
  • Loading branch information
gvanrossum committed Jul 12, 2023
commit 4ccb8739c982df0597615ae4c160f0d673f70b51
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ translate_bytecode_to_trace(
}
}
}
trace_length += buffer_size - max_length;
}
trace_length += buffer_size - max_length;
return trace_length;
}
else {
Expand Down