From e9ef9bd0dbf1807ad82dc7227abbedff9d806a09 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Feb 2012 08:25:46 +0000 Subject: merge revision(s) 34829: * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods can be overridden, so should not make an assumption on the type of results. [ruby-core:42969][Bug #6093] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/bigdecimal/bigdecimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index f57ea9051d..d9f72018ef 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -210,7 +210,7 @@ again: if (prec < 0) goto unable_to_coerce_without_prec; if (prec > DBL_DIG+1)goto SomeOneMayDoIt; v = rb_funcall(v, id_to_r, 0); - /* fall through */ + goto again; case T_RATIONAL: if (prec < 0) goto unable_to_coerce_without_prec; -- cgit v1.2.3