summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 05:47:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 05:47:47 +0000
commitd968e9ecfa3b5b8e7ef801031571cae69de39209 (patch)
tree6cfe40fa0bffe2feef02cd6e3da0d9993ed9ec0c /complex.c
parentf3c33344a4fb559e705d55a4f406d2b59f5d566b (diff)
complex.c: fix typo
* complex.c (nucomp_real_check): fix a variable name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/complex.c b/complex.c
index 40b464d..3e9d631 100644
--- a/complex.c
+++ b/complex.c
@@ -381,10 +381,10 @@ nucomp_canonicalization(int f)
inline static void
nucomp_real_check(VALUE num)
{
- if (!RB_TYPE_P(x, T_FIXNUM) &&
- !RB_TYPE_P(x, T_BIGNUM) &&
- !RB_TYPE_P(x, T_FLOAT) &&
- !RB_TYPE_P(x, T_RATIONAL)) {
+ if (!RB_TYPE_P(num, T_FIXNUM) &&
+ !RB_TYPE_P(num, T_BIGNUM) &&
+ !RB_TYPE_P(num, T_FLOAT) &&
+ !RB_TYPE_P(num, T_RATIONAL)) {
if (!k_numeric_p(num) || !f_real_p(num))
rb_raise(rb_eTypeError, "not a real");
}