summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-17 16:52:15 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-17 16:52:15 +0000
commit5afd6d4225c4773e6506b9fc3c8ca61abeea89a5 (patch)
treeb4ae3bf910381858eed9b9c567b1cd88571362f0 /vms
parentb194b55204233387f5607cc8e73f91aec4b9abc2 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index a5460766b3..146d8a630c 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -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);