From: Rafael Garcia-Suarez Date: Mon, 19 Feb 2007 10:08:38 +0000 (+0000) Subject: Add a cast for C++ compilation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b54fc2b60bc365faffaf24860c5306add8af3c87;p=p5sagit%2Fp5-mst-13.2.git Add a cast for C++ compilation p4raw-id: //depot/perl@30349 --- diff --git a/mg.c b/mg.c index 9a18bcb..47d9cb4 100644 --- a/mg.c +++ b/mg.c @@ -2262,7 +2262,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) else if (strEQ(mg->mg_ptr, "\017PEN")) { STRLEN len; const char *const start = SvPV(sv, len); - const char *out = memchr(start, '\0', len); + const char *out = (const char*)memchr(start, '\0', len); SV *tmp; struct refcounted_he *tmp_he;