diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-09 05:47:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-09 05:47:47 +0000 |
commit | d968e9ecfa3b5b8e7ef801031571cae69de39209 (patch) | |
tree | 6cfe40fa0bffe2feef02cd6e3da0d9993ed9ec0c /complex.c | |
parent | f3c33344a4fb559e705d55a4f406d2b59f5d566b (diff) | |
download | ruby-d968e9ecfa3b5b8e7ef801031571cae69de39209.tar.gz |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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"); } |