diff options
author | Nicholas Clark <nick@ccl4.org> | 2002-05-11 18:54:44 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-11 17:06:19 +0000 |
commit | ceea138788c46b183220c4e9ce5aee45bb27dfa4 (patch) | |
tree | 8ee4128fe8ea498f65bdcf16b587a894ee5c59c4 /hv.h | |
parent | 477de5e4362502d757a3f3c25b88e07dc5064aeb (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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--) { \ |