Skip to content

Commit

Permalink
Make BigDecimal WB protected
Browse files Browse the repository at this point in the history
BigDecimal has no references, so it is WB protected.
  • Loading branch information
peterzhu2118 authored and mrkn committed Feb 1, 2023
1 parent 5a25e26 commit 29c61c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static const rb_data_type_t BigDecimal_data_type = {
"BigDecimal",
{ 0, BigDecimal_delete, BigDecimal_memsize, },
#ifdef RUBY_TYPED_FREE_IMMEDIATELY
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_FROZEN_SHAREABLE
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_FROZEN_SHAREABLE | RUBY_TYPED_WB_PROTECTED
#endif
};

Expand Down

0 comments on commit 29c61c9

Please sign in to comment.