projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c8301
)
Allow uninterned symbols to be weak keys.
author
Joe Marshall
<jmarshall@alum.mit.edu>
Sun, 20 Dec 2009 19:29:17 +0000
(11:29 -0800)
committer
Joe Marshall
<jmarshall@alum.mit.edu>
Sun, 20 Dec 2009 19:29:17 +0000
(11:29 -0800)
src/runtime/hashtb.scm
patch
|
blob
|
history
diff --git
a/src/runtime/hashtb.scm
b/src/runtime/hashtb.scm
index 73208d586c778d858eeb60147546ab53fb9db256..629b6adc116c05ed5fedcc51c59f901d0c141e33 100644
(file)
--- a/
src/runtime/hashtb.scm
+++ b/
src/runtime/hashtb.scm
@@
-294,7
+294,7
@@
USA.
(define-integrable (%weak-make-entry key datum)
(if (or (not key)
(number? key) ;Keep numbers in table.
- (
symbol? key))
;Symbols, too.
+ (
interned-symbol? key))
;Symbols, too.
(cons key datum)
(system-pair-cons (ucode-type weak-cons) key datum)))