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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2014-12-05 Kaz Kylheku <kaz@kylheku.com> + * lib.c (set_diff): Bugfix: use member rather than find, + so that a nil set element is handled properly. + +2014-12-05 Kaz Kylheku <kaz@kylheku.com> + * Makefile (INSTALL): Bugfix: touch -r $(2) does not work right when $(2) is a wildcard like path/to/*.txr. It touches files in the source tree to the timestamp of the argument after -r. Putting in @@ -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); } } |