word hashcodes: Don't unsafely set the hashcode for a word to be a bignum. Revert foldable, type declaration for word hashcode*.

db4
Doug Coleman 2015-07-18 08:55:38 -07:00
parent d953038b30
commit 6415684f8d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@ USING: tools.test disjoint-sets namespaces slots.private ;
IN: disjoint-sets.tests
SYMBOL: +blah+
-405534154 +blah+ 1 set-slot
SYMBOL: uf

View File

@ -262,8 +262,9 @@ M: word forget*
tri
] if ;
! Can be foldable because the hashcode itself is immutable
M: word hashcode*
nip 1 slot { integer } declare ; inline
nip 1 slot { fixnum } declare ; inline foldable
M: word literalize <wrapper> ;