From ea1642b3f969463a49e5a671478c92e4ef129665 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 05:02:14 -0400 Subject: Completely reworked argument passing in expressions --- src/pyinterp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pyinterp.cc') diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 76fc0561..8052f6a4 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -286,7 +286,7 @@ value_t python_interpreter_t::python_command(call_scope_t& args) std::strcpy(argv[0], argv0); for (std::size_t i = 0; i < args.size(); i++) { - string arg = args[i].as_string(); + string arg = args.get(i); argv[i + 1] = new char[arg.length() + 1]; std::strcpy(argv[i + 1], arg.c_str()); } -- cgit v1.2.3