summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compar.c b/compar.c
index a8952b2d1c..c1eb2d2861 100644
--- a/compar.c
+++ b/compar.c
@@ -24,7 +24,7 @@ rb_cmpint(VALUE val, VALUE a, VALUE b)
}
if (FIXNUM_P(val)) return FIX2INT(val);
if (TYPE(val) == T_BIGNUM) {
- if (RBIGNUM(val)->sign) return 1;
+ if (RBIGNUM_SIGN(val)) return 1;
return -1;
}
if (RTEST(rb_funcall(val, '>', 1, INT2FIX(0)))) return 1;