diff options
author | Steve Hay <SteveHay@planit.com> | 2005-06-28 07:40:01 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-06-28 07:40:01 +0000 |
commit | a15d23f8e296983d6cc54b5377bc89335c45e016 (patch) | |
tree | 1249486461044b49331574346b5ae43233015e88 | |
parent | a6c3b02027478c56a1220e2f5986519e2f007461 (diff) | |
download | perl-a15d23f8e296983d6cc54b5377bc89335c45e016.tar.gz |
Stop "suspicious pointer conversion" warning following change 24997
p4raw-id: //depot/perl@25001
-rw-r--r-- | hv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |