diff options
Diffstat (limited to 'xmlregexp.c')
-rw-r--r-- | xmlregexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlregexp.c b/xmlregexp.c index 73598a53..4258a086 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -6401,7 +6401,7 @@ xmlExpHashNameComputeKey(const xmlChar *name) { if (name != NULL) { value += 30 * (*name); while ((ch = *name++) != 0) { - value = value ^ ((value << 5) + (value >> 3) + (unsigned long)ch); + value = value ^ ((value << 5) + (value >> 3) + (unsigned short)ch); } } return (value); |