Forgotten from #16656.
Jarkko Hietaniemi [Fri, 17 May 2002 21:46:04 +0000 (21:46 +0000)]
p4raw-id: //depot/perl@16666

ext/B/B.xs

index 0bae084..83c9c4a 100644 (file)
@@ -575,7 +575,7 @@ hash(sv)
        U32 hash = 0;
        char hexhash[19]; /* must fit "0xffffffffffffffff" plus trailing \0 */
        s = SvPV(sv, len);
-       PERL_HASH(hash, (U8*)s, len);
+       PERL_HASH(hash, s, len);
        sprintf(hexhash, "0x%"UVxf, (UV)hash);
        ST(0) = sv_2mortal(newSVpv(hexhash, 0));