summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-06-28 07:40:01 +0000
committerSteve Hay <SteveHay@planit.com>2005-06-28 07:40:01 +0000
commita15d23f8e296983d6cc54b5377bc89335c45e016 (patch)
tree1249486461044b49331574346b5ae43233015e88
parenta6c3b02027478c56a1220e2f5986519e2f007461 (diff)
downloadperl-a15d23f8e296983d6cc54b5377bc89335c45e016.tar.gz
Stop "suspicious pointer conversion" warning following change 24997
p4raw-id: //depot/perl@25001
-rw-r--r--hv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index f4c54229b3..42c552270e 100644
--- a/hv.c
+++ b/hv.c
@@ -542,7 +542,7 @@ S_hv_fetch_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
#ifdef ENV_IS_CASELESS
else if (mg_find((SV*)hv, PERL_MAGIC_env)) {
/* XXX This code isn't UTF8 clean. */
- char * const keysave = key;
+ char * const keysave = (char * const)key;
/* Will need to free this, so set FREEKEY flag. */
key = savepvn(key,klen);
key = (const char*)strupr((char*)key);
@@ -631,7 +631,7 @@ S_hv_fetch_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
}
if (is_utf8) {
- char * const keysave = key;
+ char * const keysave = (char * const)key;
key = (char*)bytes_from_utf8((U8*)key, &klen, &is_utf8);
if (is_utf8)
flags |= HVhek_UTF8;