aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cgen-opc.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/cgen-opc.c')
-rw-r--r--opcodes/cgen-opc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/cgen-opc.c b/opcodes/cgen-opc.c
index cbe9d5c..cb622c4 100644
--- a/opcodes/cgen-opc.c
+++ b/opcodes/cgen-opc.c
@@ -236,7 +236,7 @@ hash_keyword_name (kt, name)
unsigned int hash;
for (hash = 0; *name; ++name)
- hash += *name;
+ hash = (hash * 97) + (unsigned char) *name;
return hash % kt->hash_table_size;
}