From 6c40623371b90587e420f9200353478b680f5352 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 20 Dec 2015 00:21:39 +0100 Subject: [PATCH] use Bytecode object --- main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 659394e..83cbdd3 100644 --- a/main.cc +++ b/main.cc @@ -331,12 +331,12 @@ struct ObState: CsState { int ret = wait_result([&rlist, &subdeps, &tname, this]() { return exec_list(rlist, subdeps, tname); }); - Uint32 *func = nullptr; + cscript::Bytecode *func = nullptr; bool act = false; for (auto &sr: rlist.iter()) { Rule &r = *sr.rule; if (r.func) { - func = r.func; + func = &r.func; act = r.action; break; } @@ -364,7 +364,7 @@ struct ObState: CsState { sourcesv.push(); } - return run_int(func); + return run_int(*func); } return ret; }