# HG changeset patch # User laurent # Date 1328642291 -3600 # Node ID 7f052bd3508a5055722ac34b3c309fbdb1eb0d96 # Parent 55b074ea72556f331ef22535c4f0b01d15685b4f Fix STEP and ACTION structure initialization value in SFC diff -r 55b074ea7255 -r 7f052bd3508a stage4/generate_c/generate_c_sfcdecl.cc --- a/stage4/generate_c/generate_c_sfcdecl.cc Fri Feb 03 00:09:52 2012 +0100 +++ b/stage4/generate_c/generate_c_sfcdecl.cc Tue Feb 07 20:18:11 2012 +0100 @@ -130,7 +130,7 @@ wanted_sfcdeclaration = sfcinit_sd; /* steps table initialisation */ - s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, 0};\n"); + s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, {0, 0}};\n"); s4o.print(s4o.indent_spaces + "for(i = 0; i < "); print_variable_prefix(); s4o.print("__nb_steps; i++) {\n"); @@ -156,7 +156,7 @@ wanted_sfcdeclaration = sfcinit_sd; /* actions table initialisation */ - s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, 0, 0};\n"); + s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, {0, 0}, {0, 0}};\n"); s4o.print(s4o.indent_spaces + "for(i = 0; i < "); print_variable_prefix(); s4o.print("__nb_actions; i++) {\n");