summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2002-05-11 18:54:44 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-11 17:06:19 +0000
commitceea138788c46b183220c4e9ce5aee45bb27dfa4 (patch)
tree8ee4128fe8ea498f65bdcf16b587a894ee5c59c4 /hv.h
parent477de5e4362502d757a3f3c25b88e07dc5064aeb (diff)
downloadperl-ceea138788c46b183220c4e9ce5aee45bb27dfa4.tar.gz
unsigned char hashes (Re: perl@16539)
Message-ID: <20020511165444.GD301@Bagpuss.unfortu.net> Be explicitly unsigned char in the hash calculation. p4raw-id: //depot/perl@16542
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.h b/hv.h
index 6dc0a88f5b..4979fdd8b6 100644
--- a/hv.h
+++ b/hv.h
@@ -52,7 +52,7 @@ struct xpvhv {
/* (http://burtleburtle.net/bob/hash/doobs.html) */
#define PERL_HASH(hash,str,len) \
STMT_START { \
- register const char *s_PeRlHaSh = str; \
+ register const unsigned char *s_PeRlHaSh = str; \
register I32 i_PeRlHaSh = len; \
register U32 hash_PeRlHaSh = 0; \
while (i_PeRlHaSh--) { \