summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 08:55:11 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 08:55:11 +0000
commitecfc868bdb5e43cdb585767006e9df2de575eed2 (patch)
tree6820ba01ab6fddfd112811186129200ab9fc54c8 /ext/bigdecimal
parente6ad15393d7733d197394207235716b7cefd36fb (diff)
* ext/bigdecimal/bigdecimal.c (BigDecimal_save_limit):
return the result of a block. * test/bigdecimal/test_bigdecimal.rb (test_save_limit): add a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index f5885eb..9ed8a56 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -1878,7 +1878,7 @@ BigDecimal_save_limit(VALUE self)
VALUE ret = rb_protect(rb_yield, Qnil, &state);
VpSetPrecLimit(limit);
if (state) rb_jump_tag(state);
- return Qnil;
+ return ret;
}
/* Document-class: BigDecimal