Skip to content

Commit

Permalink
Fixed a bug introduced by r6450: Better get the commas and braces in …
Browse files Browse the repository at this point in the history
…the right place as well.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6473 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Daniel Hedberg committed Oct 20, 2010
1 parent 8c04382 commit 1021c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/runtime/errorext.cpp
Expand Up @@ -470,14 +470,14 @@ extern "C"

RML_BEGIN_LABEL(ErrorExt__getMessagesStr)
{
std::string res("{");
std::string res("}");
while(!errorMessageQueue.empty()) {
res = errorMessageQueue.top()->getFullMessage() + res;
delete errorMessageQueue.top();
errorMessageQueue.pop();
if (!errorMessageQueue.empty()) { res = res + string(","); }
if (!errorMessageQueue.empty()) { res = string(",") + res; }
}
res = res + string("}");
res = string("{") + res;
rmlA0 = mk_scon((char*)res.c_str());
RML_TAILCALLK(rmlSC);
}
Expand Down

0 comments on commit 1021c80

Please sign in to comment.