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:
2aa8958
)
Ensure weak symbols aren't removed from hash table keys.
author
Joe Marshall
<jmarshall@alum.mit.edu>
Sun, 20 Dec 2009 16:19:46 +0000
(08:19 -0800)
committer
Joe Marshall
<jmarshall@alum.mit.edu>
Sun, 20 Dec 2009 16:19:46 +0000
(08:19 -0800)
src/runtime/hashtb.scm
patch
|
blob
|
history
diff --git
a/src/runtime/hashtb.scm
b/src/runtime/hashtb.scm
index da3eda0a5f074e94a1ad4c9f97651a82d05e2dbf..73208d586c778d858eeb60147546ab53fb9db256 100644
(file)
--- a/
src/runtime/hashtb.scm
+++ b/
src/runtime/hashtb.scm
@@
-292,7
+292,9
@@
USA.
%weak-entry-datum)))
(define-integrable (%weak-make-entry key datum)
- (if (or (not key) (number? key)) ;Keep numbers in table.
+ (if (or (not key)
+ (number? key) ;Keep numbers in table.
+ (symbol? key)) ;Symbols, too.
(cons key datum)
(system-pair-cons (ucode-type weak-cons) key datum)))