From: Jerry D. Hedden Date: Thu, 10 Jul 2008 10:29:14 +0000 (-0400) Subject: threads::shared 1.24 (still more) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7600f30e40226309d1c42e35166afa4f248f3c4f;p=p5sagit%2Fp5-mst-13.2.git threads::shared 1.24 (still more) From: "Jerry D. Hedden" Message-ID: <1ff86f510807100729k4b620d3dl3fa079b89360f5ee@mail.gmail.com> Fixes warnings introduced by previous patch. p4raw-id: //depot/perl@34118 --- diff --git a/ext/threads/shared/shared.xs b/ext/threads/shared/shared.xs index 50f70af..b9a3241 100644 --- a/ext/threads/shared/shared.xs +++ b/ext/threads/shared/shared.xs @@ -876,7 +876,9 @@ sharedsv_elem_mg_FETCH(pTHX_ SV *sv, MAGIC *mg) I32 len = mg->mg_len; assert ( mg->mg_ptr != 0 ); if (mg->mg_len == HEf_SVKEY) { - key = SvPV((SV *)mg->mg_ptr, len); + STRLEN slen; + key = SvPV((SV *)mg->mg_ptr, slen); + len = slen; if (SvUTF8((SV *)mg->mg_ptr)) { len = -len; } @@ -930,7 +932,9 @@ sharedsv_elem_mg_STORE(pTHX_ SV *sv, MAGIC *mg) I32 len = mg->mg_len; assert ( mg->mg_ptr != 0 ); if (mg->mg_len == HEf_SVKEY) { - key = SvPV((SV *)mg->mg_ptr, len); + STRLEN slen; + key = SvPV((SV *)mg->mg_ptr, slen); + len = slen; if (SvUTF8((SV *)mg->mg_ptr)) { len = -len; } @@ -965,7 +969,9 @@ sharedsv_elem_mg_DELETE(pTHX_ SV *sv, MAGIC *mg) I32 len = mg->mg_len; assert ( mg->mg_ptr != 0 ); if (mg->mg_len == HEf_SVKEY) { - key = SvPV((SV *)mg->mg_ptr, len); + STRLEN slen; + key = SvPV((SV *)mg->mg_ptr, slen); + len = slen; if (SvUTF8((SV *)mg->mg_ptr)) { len = -len; } @@ -1287,7 +1293,9 @@ EXISTS(SV *obj, SV *index) exists = av_exists((AV*) sobj, SvIV(index)); } else { I32 len; - char *key = SvPVutf8(index, len); + STRLEN slen; + char *key = SvPVutf8(index, slen); + len = slen; if (SvUTF8(index)) { len = -len; }