Fix typo in the functions printing.

Change-Id: Ifb7fa712c034fc24e73a4b2e4062c1864b1c7d25
This commit is contained in:
Felix Raimundo
2016-03-25 17:22:12 +01:00
parent 418d081f6e
commit 1742146812

View File

@@ -22,7 +22,7 @@ Function::~Function() {
ExpressionLayout * Function::createLayout() {
ExpressionLayout** children_layouts = (ExpressionLayout **)malloc(4*sizeof(ExpressionLayout *));
children_layouts[0] = new StringLayout(m_function_name, strlen(m_function_name));
char string[2] = {'-', '\0'};
char string[2] = {'(', '\0'};
children_layouts[1] = new StringLayout(string, 1);
children_layouts[2] = m_arg->createLayout();
string[0] = ')';