This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Needed one more cast after 32760. The VMS compiler complained
[perl5.git] / av.c
diff --git a/av.c b/av.c
index 61e4449..fcb63e5 100644 (file)
--- a/av.c
+++ b/av.c
@@ -974,7 +974,7 @@ IV *
 Perl_av_iter_p(pTHX_ AV *av) {
     MAGIC *const mg = get_aux_mg(av);
 #if IVSIZE == I32SIZE
-    return &(mg->mg_len);
+    return (IV *)&(mg->mg_len);
 #else
     if (!mg->mg_ptr) {
        IV *temp;