summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-19 10:08:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-19 10:08:38 +0000
commitb54fc2b60bc365faffaf24860c5306add8af3c87 (patch)
tree707b8e6b48c4c6c200855bfed158c6b60df685e7 /mg.c
parent7d0a29fec2f8bfc7e48abe23f1ebc308287c59c8 (diff)
downloadperl-b54fc2b60bc365faffaf24860c5306add8af3c87.tar.gz
Add a cast for C++ compilation
p4raw-id: //depot/perl@30349
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 9a18bcb53c..47d9cb437c 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;