[Git][cmucl/cmucl][issue-240-set-diff-with-hash-table] Forgot to return the value

Raymond Toy (@rtoy) gitlab at common-lisp.net
Mon Jun 19 20:22:47 UTC 2023



Raymond Toy pushed to branch issue-240-set-diff-with-hash-table at cmucl / cmucl


Commits:
653dc42f by Raymond Toy at 2023-06-19T13:19:51-07:00
Forgot to return the value

When list1 was in the hashtable, we forgot to return values from the
hashtable after computing the return value.

- - - - -


1 changed file:

- src/code/list.lisp


Changes:

=====================================
src/code/list.lisp
=====================================
@@ -883,7 +883,8 @@
 	     (maphash #'(lambda (key value)
 			  (declare (ignore key))
 			  (setq result (nconc result value)))
-		      hashtable))))))
+		      hashtable)
+	     result)))))
 
 
 (defun nset-difference (list1 list2 &key key



View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/653dc42ff6285a475709fe25fa9f5d54c998f4ab

-- 
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/653dc42ff6285a475709fe25fa9f5d54c998f4ab
You're receiving this email because of your account on gitlab.common-lisp.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20230619/613c29a1/attachment.html>


More information about the cmucl-cvs mailing list