Skip to content

Commit

Permalink
last minute changes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@736 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
henjo committed Feb 14, 2002
1 parent 3acd52a commit 8d9e5a4
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions mosh/src/walker.g
Expand Up @@ -520,22 +520,7 @@ algorithm returns [value val]
}
else
{
if (check_type(val,lhs))
{
cout << "Overwriting value" << endl;
if (val.is_real()) lhs->set_value(val.get_real());
else if (val.is_integer()) lhs->set_value(val.get_integer());
else if (val.is_boolean()) lhs->set_value(val.get_boolean());
else if (val.is_string()) lhs->set_value(val.get_string());
else
{
cout << "Setting non supported type" << endl;
}
}
else
{
cout << "Non compatible types" << endl;
}
*lhs = val;
}
}
| (expression_list component_reference function_call)
Expand Down

0 comments on commit 8d9e5a4

Please sign in to comment.