move the pcall func

master
Daniel Kolesa 2016-09-10 20:47:56 +02:00
parent 3d39cf73e0
commit 4f0d6eda87
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static bool do_call(CsState &cs, ostd::ConstCharRange line, bool file = false) {
cs.run(line, ret);
}
};
if (!cs.pcall(tocall, &err, &st)) {
if (!cs.pcall(ostd::move(tocall), &err, &st)) {
signal(SIGINT, SIG_DFL);
ostd::ConstCharRange terr = err;
auto col = ostd::find(terr, ':');