summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-05 16:31:19 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-05 16:31:19 +0000
commitdbec401c115d12190143cf062515ad358d3a710f (patch)
tree9fbb2f324a871bb5c45d83efde773c5d1e282ca1 /ext/fiddle
parent6520da6245b70169363e33aa929775a4f958d84e (diff)
use INT2FIX(0) instead of INT2NUM(0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c
index c184c78..72a1a62 100644
--- a/ext/fiddle/function.c
+++ b/ext/fiddle/function.c
@@ -135,9 +135,9 @@ function_call(int argc, VALUE argv[], VALUE self)
if(NUM2INT(type) == TYPE_VOIDP) {
if(NIL_P(src)) {
- src = INT2NUM(0);
+ src = INT2FIX(0);
} else if(cPointer != CLASS_OF(src)) {
- src = rb_funcall(cPointer, rb_intern("[]"), 1, src);
+ src = rb_funcall(cPointer, rb_intern("[]"), 1, src);
}
src = rb_Integer(src);
}