ActionsLike0
Bug #5172
closed[PATCH] bigdecimal: RB_GC_GUARD rb_inspect() output
Description
ext/bigdecimal/bigdecimal.c: RB_GC_GUARD rb_inspect() output
We can't directly use RSTRING_PTR() on rb_inspect() because the
GC may collect the VALUE returned by rb_inspect(). This is a
problem for Symbols with long names that return non-embedded
Strings when inspected.
test/bigdecimal/test_bigdecimal.rb (test_gc): updated for BigDecimal#coerce
test/bigdecimal/test_bigmath.rb (test_gc): added test case
Files
Updated by mrkn (Kenta Murata) over 13 years ago
- Assignee set to mrkn (Kenta Murata)
Updated by mrkn (Kenta Murata) over 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
ActionsLike0