diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-11 19:25:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-11 19:25:34 -0700 |
commit | c7925b143b73813f3d88fe67b51ec807e7c2c0ad (patch) | |
tree | 6760688f51452ed2d3ce18a3178119d350544def | |
parent | 8d661219c56f4eb2abeb958e96d7699c82b666cb (diff) | |
download | txr-c7925b143b73813f3d88fe67b51ec807e7c2c0ad.tar.gz txr-c7925b143b73813f3d88fe67b51ec807e7c2c0ad.tar.bz2 txr-c7925b143b73813f3d88fe67b51ec807e7c2c0ad.zip |
hash: remove unnecessary test.
* hash.c (hash_next): We know after the loop that hi->cons is
not nil, because the loop contains no break, and is guarded
by hi->cons being nil.
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -970,7 +970,7 @@ val hash_next(val iter) } set(mkloc(hi->cons, iter), vecref(h->table, num_fast(hi->chain))); } - return if2(hi->cons, us_car(hi->cons)); + return us_car(hi->cons); } val maphash(val fun, val hash) |