--- a/stage4/generate_c/generate_c_il.cc Sat Dec 01 11:30:16 2012 +0000
+++ b/stage4/generate_c/generate_c_il.cc Mon Dec 03 14:06:49 2012 +0000
@@ -903,7 +903,7 @@
s4o.print(",\n"+s4o.indent_spaces);
if (param_value == NULL) {
/* If not, get the default value of this variable's type */
- param_value = (symbol_c *)current_param_type->accept(*type_initial_value_c::instance());
+ param_value = type_initial_value_c::get(current_param_type);
}
if (param_value == NULL) ERROR;
s4o.print("(");
@@ -1292,7 +1292,7 @@
s4o.print(",\n"+s4o.indent_spaces);
if (param_value == NULL) {
/* If not, get the default value of this variable's type */
- param_value = (symbol_c *)current_param_type->accept(*type_initial_value_c::instance());
+ param_value = type_initial_value_c::get(current_param_type);
}
if (param_value == NULL) ERROR;
s4o.print("(");