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 | 04c2f66cae1015899cb690189aaa4162330737f2 (patch) | |
tree | 6760688f51452ed2d3ce18a3178119d350544def /hash.c | |
parent | 071c281c7f2652726ba123a917903c77f2144fa0 (diff) | |
download | txr-04c2f66cae1015899cb690189aaa4162330737f2.tar.gz txr-04c2f66cae1015899cb690189aaa4162330737f2.tar.bz2 txr-04c2f66cae1015899cb690189aaa4162330737f2.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.
Diffstat (limited to 'hash.c')
-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) |