fixed hash-code for id-tables
Closes PR 13942.
This commit is contained in:
parent
2057b51f21
commit
f5b91941eb
|
@ -13,9 +13,10 @@
|
||||||
|
|
||||||
(define (make-id-table-hash-code identifier->symbol)
|
(define (make-id-table-hash-code identifier->symbol)
|
||||||
(lambda (d hash-code)
|
(lambda (d hash-code)
|
||||||
(+ (hash-code (id-table-phase d))
|
(let ([phase (id-table-phase d)])
|
||||||
(for/sum (((k v) (in-dict d)))
|
(+ (hash-code phase)
|
||||||
(* (hash-code (identifier->symbol k)) (hash-code v))))))
|
(for/sum (((k v) (in-dict d)))
|
||||||
|
(* (hash-code (identifier->symbol k phase)) (hash-code v)))))))
|
||||||
|
|
||||||
(define (make-id-table-equal? idtbl-count idtbl-ref)
|
(define (make-id-table-equal? idtbl-count idtbl-ref)
|
||||||
(lambda (left right equal?)
|
(lambda (left right equal?)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user