Actions
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
Actions
Like0
Like0Like0Like0Like0