Bugfix in hash-table-copy which didn't copy hash function.

Patch from Alexei Lozovsky.
This commit is contained in:
Alex Shinn 2015-03-13 07:10:41 +09:00
parent 2db64f67f8
commit 3000523427

View file

@ -111,6 +111,7 @@
(define (hash-table-copy table)
(assert-hash-table "hash-table-copy" table)
(let ((res (make-hash-table (hash-table-equivalence-function table))))
(let ((res (make-hash-table (hash-table-equivalence-function table)
(hash-table-hash-function table))))
(hash-table-merge! res table)
res))