mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
6b9e477cc0
Use mrb_protect_error API instead of direct MRB_TRY/MRB_CATCH to handle exceptions in mpz_mul_all_ones and mpz_to_s_dc. This maintains C++ compatibility (issue #6702) while ensuring temporary mpz_t allocations are properly freed even when exceptions occur. Co-authored-by: Claude <noreply@anthropic.com>