[Git][cmucl/cmucl][issue-240-set-diff-with-hash-table] Fix typo in set-difference

Raymond Toy (@rtoy) gitlab at common-lisp.net
Mon Jun 19 21:34:29 UTC 2023



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


Commits:
bc7826a7 by Raymond Toy at 2023-06-19T14:26:19-07:00
Fix typo in set-difference

The early exist for when list2 is empty had a typo with `list` instead
of `list2`.

- - - - -


1 changed file:

- src/code/list.lisp


Changes:

=====================================
src/code/list.lisp
=====================================
@@ -863,7 +863,7 @@
   (if (and testp notp)
       (error "Test and test-not both supplied."))
   ;; Quick exit
-  (when (null list)
+  (when (null list2)
     (return-from set-difference list1))
 
   (multiple-value-bind (hashtable shorter-list)



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

-- 
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/bc7826a734123f627eccc4ff29d95b01c7043f78
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/f2a5ed63/attachment.html>


More information about the cmucl-cvs mailing list