fixed hash-code for id-tables

Closes PR 13942.
This commit is contained in:
Ryan Culpepper 2013-07-31 16:58:21 -04:00
parent 2057b51f21
commit f5b91941eb

View File

@ -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)])
(+ (hash-code phase)
(for/sum (((k v) (in-dict d))) (for/sum (((k v) (in-dict d)))
(* (hash-code (identifier->symbol k)) (hash-code v)))))) (* (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?)