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 1301121f14..b3cfac2c69 100644
--- a/compar.c
+++ b/compar.c
@@ -79,7 +79,7 @@ cmp_between(x, min, max)
int t = NUM2INT(c);
if (t < 0) return FALSE;
- c = rb_funcall(x, cmp, 1, min);
+ c = rb_funcall(x, cmp, 1, max);
t = NUM2INT(c);
if (t > 0) return FALSE;
return TRUE;