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
This commit is contained in:
parent
f3c33344a4
commit
d968e9ecfa
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user