From f1eece6b17e37a8db60c4ddcb49dd93ce1422f10 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 2 Dec 2011 12:30:39 +0000 Subject: Fix array initializer --- pp2cc.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pp2cc.py b/pp2cc.py index ad50cd4..95809e3 100755 --- a/pp2cc.py +++ b/pp2cc.py @@ -953,7 +953,6 @@ class Parse(object): reg_array = "R1" # store the address of the first array element in the pointer init_vals.append(self.asm.binary_op("LOAD", reg_array, var_reg)) - init_vals.append(self.asm.binary_op("ADD", reg_array, var_arr)) # in this particular case, it happens that the array values are # next to the pointer to the array init_vals.append(self.asm.binary_op("ADD", reg_array, 1)) -- cgit v1.2.1