projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
52d81aa
)
Change 32760 needed to add a cast to avoid a warning.
Nicholas Clark [Sat, 29 Dec 2007 17:35:25 +0000 (17:35 +0000)]
p4raw-id: //depot/perl@32776
av.c
patch
|
blob
|
blame
|
history
diff --git
a/av.c
b/av.c
index
afca8bf
..
61e4449
100644
(file)
--- a/
av.c
+++ b/
av.c
@@
-977,8
+977,10
@@
Perl_av_iter_p(pTHX_ AV *av) {
return &(mg->mg_len);
#else
if (!mg->mg_ptr) {
+ IV *temp;
mg->mg_len = IVSIZE;
- Newxz(mg->mg_ptr, 1, IV);
+ Newxz(temp, 1, IV);
+ mg->mg_ptr = (char *) temp;
}
return (IV *)mg->mg_ptr;
#endif