summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-24 06:21:43 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-24 06:21:43 +0000
commitdea6ce41b404df35944ab6063c614497b1b2984e (patch)
tree154318e243567b27e3f8fae8fd301971d2d68be9 /range.c
parenta85a9d31db29e366cce9efb9c3fab24e750ed498 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/range.c b/range.c
index de46bec..5accc14 100644
--- a/range.c
+++ b/range.c
@@ -98,12 +98,12 @@ range_eqq(range, obj)
end = rb_ivar_get(range, id_end);
if (FIXNUM_P(beg) && FIXNUM_P(obj) && FIXNUM_P(end)) {
- if (NUM2LONG(beg) <= NUM2LONG(obj)) {
+ if (FIX2LONG(beg) <= FIX2LONG(obj)) {
if (EXCL(range)) {
- if (NUM2LONG(obj) < NUM2LONG(end)) return Qtrue;
+ if (FIX2LONG(obj) < FIX2LONG(end)) return Qtrue;
}
else {
- if (NUM2LONG(obj) <= NUM2LONG(end)) return Qtrue;
+ if (FIX2LONG(obj) <= FIX2LONG(end)) return Qtrue;
}
}
return Qfalse;