diff options
Diffstat (limited to 'cli/runtime-source.cxx')
-rw-r--r-- | cli/runtime-source.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/runtime-source.cxx b/cli/runtime-source.cxx index 49c1bf2..e3be19e 100644 --- a/cli/runtime-source.cxx +++ b/cli/runtime-source.cxx @@ -356,9 +356,9 @@ generate_runtime_source (context& ctx, bool complete) << "return base::next ();" << "else" << "{" - << "hold_.swap (args_.front ());" + << "hold_[i_ == 0 ? ++i_ : --i_].swap (args_.front ());" << "args_.pop_front ();" - << "return hold_.c_str ();" + << "return hold_[i_].c_str ();" << "}" << "}" @@ -530,7 +530,7 @@ generate_runtime_source (context& ctx, bool complete) << "{" << "using namespace std;" << endl - << "string o (s.next ());" + << "const char* o (s.next ());" << endl << "if (s.more ())" << "{" |