summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-04-08 07:17:12 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-04-08 07:17:12 -0700
commit051093caf02184bb9072e6958765e755b55a2885 (patch)
treea3184b67c0de1710f35cb462721335105b759ff1
parent1491b40d10034ec35b024098941d54a1829d422a (diff)
downloadtxr-051093caf02184bb9072e6958765e755b55a2885.tar.gz
txr-051093caf02184bb9072e6958765e755b55a2885.tar.bz2
txr-051093caf02184bb9072e6958765e755b55a2885.zip
* eval.c (rangev_func, range_star_v_func): Use numeric
equivalence comparison for end test, rather than eql.
-rw-r--r--ChangeLog5
-rw-r--r--eval.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b9085cec..035ae2d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-08 Kaz Kylheku <kaz@kylheku.com>
+
+ * eval.c (rangev_func, range_star_v_func): Use numeric
+ equivalence comparison for end test, rather than eql.
+
2014-04-07 Kaz Kylheku <kaz@kylheku.com>
* lib.c (eql): Bugfix: not handling floating-point types!
diff --git a/eval.c b/eval.c
index 9d490a5a..ac6acced 100644
--- a/eval.c
+++ b/eval.c
@@ -2805,8 +2805,8 @@ static val rangev_func(val env, val lcons)
rplaca(lcons, from);
- if (eql(from, to) ||
- (to &&
+ if (numeq(from, to) ||
+ (to &&
((lt(from, to) && gt(next, to)) ||
(gt(from, to) && lt(next, to)))))
{
@@ -2839,7 +2839,7 @@ static val range_star_v_func(val env, val lcons)
rplaca(lcons, from);
- if (eql(next, to) ||
+ if (numeq(next, to) ||
(to &&
((lt(from, to) && gt(next, to)) ||
(gt(from, to) && lt(next, to)))))