stage4/generate_c/generate_c_st.cc
changeset 762 a3d917474ae4
parent 721 5dc33058e041
child 793 268bf4ca5fa1
--- a/stage4/generate_c/generate_c_st.cc	Sat Dec 01 11:30:16 2012 +0000
+++ b/stage4/generate_c/generate_c_st.cc	Mon Dec 03 14:06:49 2012 +0000
@@ -752,7 +752,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("(");