Needed one more cast after 32760. The VMS compiler complained
Craig A. Berry [Mon, 31 Dec 2007 23:49:48 +0000 (23:49 +0000)]
that a pointer to int and pointer to long are different things
even though they both point to a 32-bit signed integer.

p4raw-id: //depot/perl@32792

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;