summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1997-12-04 14:29:59 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:33 +0900
commitfb0fe24512d1796f794306768ddac37566e9a209 (patch)
tree441fc10b147be3cc7db217ab1d64ec1ff4dbf7ff /compar.c
parentab261638f5b87384fa2bda5678cb38ae9a505209 (diff)
version 1.0-971204v1_0_971204
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971204.tar.gz Thu Dec 4 14:29:59 1997 Yukihiro Matsumoto <matz@netlab.co.jp> * version 1.0-971204 Mon Dec 1 15:24:41 1997 Yukihiro Matsumoto <matz@netlab.co.jp> * compar.c (cmp_between): wrong comparison made. Wed Nov 26 18:18:05 1997 Yukihiro Matsumoto <matz@netlab.co.jp> * numeric.c (fix2str): enlarge buffer to prevent overflow on some machines.
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;