From ecceec27f2ace72bfb430f09e72db6387d10b252 Mon Sep 17 00:00:00 2001 From: Karl Waclawek Date: Mon, 22 Sep 2003 14:14:54 +0000 Subject: [PATCH] Improved comment on hash algorithm. --- expat/lib/xmlparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 2884d36c..1293b864 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -109,7 +109,8 @@ typedef struct { } HASH_TABLE; /* Basic character hash algorithm, taken from Python's string hash: - h = h * 1000003(prime number) ^ character. + h = h * 1000003 ^ character, the constant being a prime number. + */ #ifdef XML_UNICODE #define CHAR_HASH(h, c) \