Skip to content

Commit

Permalink
Update call to mrb_integer_to_str in mrbsys cext
Browse files Browse the repository at this point in the history
With the `Fixnum` deprecation in mruby 3.1.0, `mrb_fixnum_to_str` was
renamed to `mrb_integer_to_str`. `mrb_fixnum_to_str` was retained as a
macro alias for source compatibility.

Update to the current stable function name.
  • Loading branch information
lopopolo committed Jul 24, 2022
1 parent 924c55d commit 93c51cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artichoke-backend/cext/mrbsys/src/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ mrb_obj_as_string(mrb_state *mrb, mrb_value obj)
case MRB_TT_SYMBOL:
return mrb_sym_str(mrb, mrb_symbol(obj));
case MRB_TT_INTEGER:
return mrb_fixnum_to_str(mrb, obj, 10);
return mrb_integer_to_str(mrb, obj, 10);
case MRB_TT_SCLASS:
case MRB_TT_CLASS:
case MRB_TT_MODULE:
Expand Down

0 comments on commit 93c51cb

Please sign in to comment.