Change 16542 by jhi@alpha on 2002/05/11 17:06:19

        Subject: unsigned char hashes (Re: perl@16539)
        From: Nicholas Clark <[EMAIL PROTECTED]>
        Date: Sat, 11 May 2002 17:54:44 +0100
        Message-ID: <[EMAIL PROTECTED]>
        
        Be explicitly unsigned char in the hash calculation.

Affected files ...

.... //depot/perl/hv.h#35 edit

Differences ...

==== //depot/perl/hv.h#35 (text) ====
Index: perl/hv.h
--- perl/hv.h#34~15893~ Sat Apr 13 08:25:55 2002
+++ perl/hv.h   Sat May 11 10:06:19 2002
@@ -52,7 +52,7 @@
 /* (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--) { \
End of Patch.

Reply via email to