From a1c7298f9d43bcab5c6db85d3da526c1f18fe253 Mon Sep 17 00:00:00 2001 From: ceriel Date: Sat, 7 Feb 1987 00:14:51 +0000 Subject: [PATCH] changed hash function --- util/topgen/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/topgen/hash.c b/util/topgen/hash.c index c8c458269..f0665e905 100644 --- a/util/topgen/hash.c +++ b/util/topgen/hash.c @@ -23,8 +23,8 @@ hash(string) char *string; { if (strcmp(string,"ANY") == 0) return 128; for (sum=i=0,p=string;*p;i += 3) - sum += (*p++)<<(i&07); - return sum % 127; + sum += (*p++)<<(i&03); + return sum % 128; } -- 2.34.1