aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-16 09:25:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-16 09:25:08 +0000
commit527fa610870bd7823560ba7fda8e72e21fc42d7e (patch)
tree9279606c602141636fbb4ac6e371f4de789c0141 /numeric.c
parent135a171ce11dc56d037bfc9c5c50b006042621c4 (diff)
downloadruby-527fa610870bd7823560ba7fda8e72e21fc42d7e.tar.gz
numeric.c: fix segfault
* numeric.c (compare_with_zero): fix variable name, rb_cmperr requires VALUEs but not an ID. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 5e70cafdc9..6f094c1cde 100644
--- a/numeric.c
+++ b/numeric.c
@@ -168,7 +168,7 @@ compare_with_zero(VALUE num, ID mid)
VALUE zero = INT2FIX(0);
VALUE r = rb_check_funcall(num, mid, 1, &zero);
if (r == Qundef) {
- rb_cmperr(mid, zero);
+ rb_cmperr(num, zero);
}
return r;
}