Hi,
In message "[ruby-talk:16756] Re: Symbols, and their use as hash keys"
on 01/06/22, "Aristarkh A Zagorodnikov" <xm / w3d.ru> writes:
|> Here's the patch.
|Thanks a lot! ;)
I forgot to modify one place. You need to apply this additional
patch.
--- st.c 2001/06/22 08:16:31 1.13.2.2
+++ st.c 2001/06/22 08:37:01 1.13.2.3
@@ -67,3 +67,3 @@
#define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key))
-#define do_hash_bin(key,table) (do_hash(key, table)&(table)->num_bins)
+#define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins)