From 4f0d6eda874cabcaa7448ce1b11ee391cf840f7f Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 10 Sep 2016 20:47:56 +0200 Subject: [PATCH] move the pcall func --- tools/repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/repl.cc b/tools/repl.cc index 35b1fe90..2d2b4a7e 100644 --- a/tools/repl.cc +++ b/tools/repl.cc @@ -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, ':');