diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-02-19 10:08:38 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-02-19 10:08:38 +0000 |
commit | b54fc2b60bc365faffaf24860c5306add8af3c87 (patch) | |
tree | 707b8e6b48c4c6c200855bfed158c6b60df685e7 /mg.c | |
parent | 7d0a29fec2f8bfc7e48abe23f1ebc308287c59c8 (diff) | |
download | perl-b54fc2b60bc365faffaf24860c5306add8af3c87.tar.gz |
Add a cast for C++ compilation
p4raw-id: //depot/perl@30349
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |