diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-17 16:52:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-17 16:52:15 +0000 |
commit | 5afd6d4225c4773e6506b9fc3c8ca61abeea89a5 (patch) | |
tree | b4ae3bf910381858eed9b9c567b1cd88571362f0 /vms | |
parent | b194b55204233387f5607cc8e73f91aec4b9abc2 (diff) | |
download | perl-5afd6d4225c4773e6506b9fc3c8ca61abeea89a5.tar.gz |
PERL_HASH() casting games so that our hashed data is "unsigned
char" but old code using just a "char" doesn't need changes.
(The change is using a temporary pointer instead of a direct
cast to unsigned char* which would blindly cast anything,
not just char pointers.) (The problem arose in MacOS Classic,
as seen by Pudge, the cure by Nicholas Clark.)
p4raw-id: //depot/perl@16656
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ prime_env_iter(void) Perl_warner(aTHX_ packWARN(WARN_INTERNAL),"Ill-formed message in prime_env_iter: |%s|",buf); continue; } - PERL_HASH(hash,(U8*)key,keylen); + PERL_HASH(hash,key,keylen); sv = newSVpvn(cp2,cp1 - cp2 + 1); SvTAINTED_on(sv); hv_store(envhv,key,keylen,sv,hash); |