diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-12-05 19:14:12 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-12-05 19:14:12 -0800 |
commit | 93b8e741fcf0b4349653000eca67ffb8f8c95d01 (patch) | |
tree | bb05016b1f39b22192d3290f26b329f44b5cce90 /lib.c | |
parent | 7de541afba40076a0065285f3e392f507ee2bdc3 (diff) | |
download | txr-93b8e741fcf0b4349653000eca67ffb8f8c95d01.tar.gz txr-93b8e741fcf0b4349653000eca67ffb8f8c95d01.tar.bz2 txr-93b8e741fcf0b4349653000eca67ffb8f8c95d01.zip |
* lib.c (set_diff): Bugfix: use member rather than find,
so that a nil set element is handled properly.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5998,7 +5998,7 @@ val set_diff(val list1, val list2, val testfun, val keyfun) val item = car(list1); val list1_key = funcall1(keyfun, item); - if (!find(list1_key, list2, testfun, keyfun)) + if (!member(list1_key, list2, testfun, keyfun)) ptail = list_collect(ptail, item); } } |