develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33815 - trunk/compilers/imcc

From:
cotto
Date:
December 11, 2008 15:57
Subject:
[svn:parrot] r33815 - trunk/compilers/imcc
Message ID:
20081211235656.041DCCB9AF@x12.develooper.com
Author: cotto
Date: Thu Dec 11 15:56:55 2008
New Revision: 33815

Modified:
   trunk/compilers/imcc/pcc.c

Log:
[imcc] IMCC_subst_constants uses r[2], so make sure regs has enough elements (CID #170)


Modified: trunk/compilers/imcc/pcc.c
==============================================================================
--- trunk/compilers/imcc/pcc.c	(original)
+++ trunk/compilers/imcc/pcc.c	Thu Dec 11 15:56:55 2008
@@ -656,7 +656,7 @@
 insert_tail_call(PARROT_INTERP, ARGIN(IMC_Unit *unit), ARGMOD(Instruction *ins),
         ARGMOD(SymReg *sub), ARGIN(SymReg *meth))
 {
-    SymReg *regs[2];
+    SymReg *regs[3];
 
     if (meth) {
         regs[0] = sub->pcc_sub->object;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About