diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-04-08 07:17:12 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-04-08 07:17:12 -0700 |
commit | 051093caf02184bb9072e6958765e755b55a2885 (patch) | |
tree | a3184b67c0de1710f35cb462721335105b759ff1 | |
parent | 1491b40d10034ec35b024098941d54a1829d422a (diff) | |
download | txr-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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! @@ -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))))) |