diff options
author | Vincent Pit <perl@profvince.com> | 2012-06-22 19:21:50 +0200 |
---|---|---|
committer | Vincent Pit <perl@profvince.com> | 2012-06-22 19:21:50 +0200 |
commit | 3565fbf321fb95d8363f9fd24673f1f135265f89 (patch) | |
tree | 309ce3b50af002bb06a5e4a7112e23133d333e79 /mg.c | |
parent | 83f29afad70b612d23a170f28fca57f0c8ca24af (diff) | |
download | perl-3565fbf321fb95d8363f9fd24673f1f135265f89.tar.gz |
Also handle the case IVSIZE == I32SIZE when resetting the array iterator
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2051,8 +2051,12 @@ Perl_magic_cleararylen_p(pTHX_ SV *sv, MAGIC *mg) PERL_UNUSED_ARG(sv); /* Reset the iterator when the array is cleared */ +#if IVSIZE == I32SIZE + *((IV *) &(mg->mg_len)) = 0; +#else if (mg->mg_ptr) *((IV *) mg->mg_ptr) = 0; +#endif return 0; } |