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;

Reply via email to