summaryrefslogtreecommitdiff
path: root/as/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'as/table.c')
-rw-r--r--as/table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/as/table.c b/as/table.c
index 3d39d0b..9c70015 100644
--- a/as/table.c
+++ b/as/table.c
@@ -129,7 +129,7 @@ PUBLIC struct sym_s *lookup()
hashval ^= hconv(nameptr[-1]);
}
else
- hashval = hconv(nameptr[-(length / 2)]) * MULTIPLIER,
+ hashval = hconv(symname[length-(length / 2)]) * MULTIPLIER,
hashval ^= hconv(nameptr[-2]) << 2,
hashval ^= hconv(nameptr[-1]);
nameptr = symname;