summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-01-03 18:53:29 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-01-03 18:53:29 -0800
commit8b5730700c25a05280970d71df4eb7ca45967f2b (patch)
treed10cd37e83a80fcccdd69ca47f34f153e4a39929 /perl.h
parent4b2bcf2b0939c3ea654c9b2ba72f9fcc63964cb7 (diff)
downloadperl-8b5730700c25a05280970d71df4eb7ca45967f2b.tar.gz
perl.h:MY_CXT_CLONE: void *, not void **
C++ fails otherwise, and PL_my_cxt_list is void ** so individual elephants (aka elements) should be void *.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index e35245f693..2deb1d4f0c 100644
--- a/perl.h
+++ b/perl.h
@@ -6156,7 +6156,7 @@ typedef struct am_table_short AMTS;
/* Clones the per-interpreter data. */
# define MY_CXT_CLONE \
my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
- void ** old_my_cxtp = PL_my_cxt_list[MY_CXT_INDEX]; \
+ void * old_my_cxtp = PL_my_cxt_list[MY_CXT_INDEX]; \
PL_my_cxt_list[MY_CXT_INDEX] = my_cxtp; \
Copy(old_my_cxtp, my_cxtp, 1, my_cxt_t);