Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
We just need to make sure `ec->cfp` is always preserved and this can
convert without rising when `raise` is true.
  • Loading branch information
XrXr committed Apr 22, 2024
1 parent aa1de5a commit 3865442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object.c
Original file line number Diff line number Diff line change
Expand Up @@ -3236,7 +3236,7 @@ ALWAYS_INLINE(static VALUE rb_to_integer_with_id_exception(VALUE val, const char
static inline VALUE
rb_to_integer_with_id_exception(VALUE val, const char *method, ID mid, int raise)
{
// when !raise, we need to pop the lazily pushed frame.
// We need to pop the lazily pushed frame when not raising an exception.
rb_control_frame_t *current_cfp;
VALUE v;

Expand Down

0 comments on commit 3865442

Please sign in to comment.