Make hash table sizes prime numbers instead of powers of two.

This commit is contained in:
Dianne Skoll
2024-10-12 10:24:22 -04:00
parent 950c0b3747
commit 302bc5a5de
3 changed files with 122 additions and 122 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
#define UPPER(c) (islower(c) ? toupper(c) : c)
/* The variable hash table */
#define VAR_HASH_SIZE 64
#define VAR_HASH_SIZE 67
#define VARIABLE ErrMsg[E_VAR]
#define VALUE ErrMsg[E_VAL]
#define UNDEF ErrMsg[E_UNDEF]