Fix bug in suffix of inlinefcall call in ST and IL
authorlaurent
Wed, 13 Jul 2011 12:44:12 +0200
changeset 344 8f71c46a0a55
parent 343 9a6208023328
child 345 894c0e6d951c
Fix bug in suffix of inlinefcall call in ST and IL
stage4/generate_c/generate_c_il.cc
stage4/generate_c/generate_c_st.cc
--- a/stage4/generate_c/generate_c_il.cc	Wed Jul 13 12:32:34 2011 +0200
+++ b/stage4/generate_c/generate_c_il.cc	Wed Jul 13 12:44:12 2011 +0200
@@ -897,7 +897,7 @@
     s4o.print(")");
   }
   if (function_type_suffix != NULL) {
-  	function_type_suffix = search_expression_type->default_literal_type(function_type_prefix);
+  	function_type_suffix = search_expression_type->default_literal_type(function_type_suffix);
   }
   if (has_output_params) {
   	fcall_number++;
@@ -1265,7 +1265,7 @@
     s4o.print(")");
   }
   if (function_type_suffix != NULL) {
-  	function_type_suffix = search_expression_type->default_literal_type(function_type_prefix);
+  	function_type_suffix = search_expression_type->default_literal_type(function_type_suffix);
   }
   if (has_output_params) {
 	fcall_number++;
--- a/stage4/generate_c/generate_c_st.cc	Wed Jul 13 12:32:34 2011 +0200
+++ b/stage4/generate_c/generate_c_st.cc	Wed Jul 13 12:44:12 2011 +0200
@@ -702,7 +702,7 @@
     s4o.print(")");
   }
   if (function_type_suffix != NULL) {
-	function_type_suffix = search_expression_type->default_literal_type(function_type_prefix);
+	function_type_suffix = search_expression_type->default_literal_type(function_type_suffix);
   }
   if (has_output_params) {
 	fcall_number++;