custom hashtables' hash functions can now return any exact integer,
instead of returning nonnegative exact integers.
This commit is contained in:
parent
c0233db219
commit
57de27827a
|
@ -395,7 +395,7 @@
|
||||||
[else
|
[else
|
||||||
(lambda (k)
|
(lambda (k)
|
||||||
(let ([i (f k)])
|
(let ([i (f k)])
|
||||||
(if (and (or (fixnum? i) (bignum? i)) (>= i 0))
|
(if (or (fixnum? i) (bignum? i))
|
||||||
i
|
i
|
||||||
(die #f "invalid return value from hash function" i))))]))
|
(die #f "invalid return value from hash function" i))))]))
|
||||||
(unless (procedure? hashf)
|
(unless (procedure? hashf)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1846
|
1847
|
||||||
|
|
Loading…
Reference in New Issue