[Mono-dev] [PATCH] monoburg: Fix type of MBState.reg2 when using pointer as MBREG_TYPE
Pekka J Enberg
penberg at cs.helsinki.fi
Thu Feb 8 08:43:15 EST 2007
From: Pekka Enberg <penberg at cs.helsinki.fi>
If reg1 and reg2 are declared on the same line, the type of reg2 will be
struct even though MBREG_TYPE is declared as a pointer to struct.
Signed-off-by: Pekka Enberg <penberg at cs.helsinki.fi>
---
mono/monoburg/monoburg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: mono/mono/monoburg/monoburg.c
===================================================================
--- mono.orig/mono/monoburg/monoburg.c 2007-02-08 15:33:19.000000000 +0200
+++ mono/mono/monoburg/monoburg.c 2007-02-08 15:33:30.000000000 +0200
@@ -335,7 +335,8 @@
if (dag_mode) {
output ("\tMBTREE_TYPE\t *tree;\n");
- output ("\tMBREG_TYPE\t reg1, reg2;\n");
+ output ("\tMBREG_TYPE\t reg1;\n");
+ output ("\tMBREG_TYPE\t reg2;\n");
}
output ("\tMBState\t\t*left, *right;\n");
More information about the Mono-devel-list
mailing list