Patch from Enache for the crashing of bytecode.t in Tru64.
[p5sagit/p5-mst-13.2.git] / ext / B / B / Bytecode.pm
index 826ae5b..8580885 100644 (file)
@@ -358,7 +358,7 @@ sub B::AV::bsave {
 
     nice "-AV-",
     asm "ldsv", $varix = $ix unless $ix == $varix;
-    asm "av_extend", $av->MAX;
+    asm "av_extend", $av->MAX if $av->MAX >= 0;
     asm "av_pushx", $_ for @array;
     asm "sv_refcnt", $av->REFCNT;
     asm "xav_flags", $av->AvFLAGS;