bigint.c (mrb_bint_copy): allow dup operation for bigints.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-11 11:02:27 +09:00
parent 95610a292b
commit 3ebb55b75f
3 changed files with 14 additions and 2 deletions
+5
View File
@@ -2737,6 +2737,11 @@ init_copy(mrb_state *mrb, mrb_value dest, mrb_value obj)
case MRB_TT_ISTRUCT:
mrb_istruct_copy(dest, obj);
break;
#ifdef MRB_USE_BIGINT
case MRB_TT_BIGINT:
mrb_bint_copy(mrb, dest, obj);
break;
#endif
default:
break;