From: Clifford Wolf Date: Sat, 15 Feb 2014 18:36:09 +0000 (+0100) Subject: Bugfix in expression parser of read_liberty X-Git-Tag: yosys-0.2.0~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96b1ebc8dc337b5412ebce91a7cecb84264b474a;p=yosys.git Bugfix in expression parser of read_liberty --- diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc index 220f32f5e..ca899cb95 100644 --- a/frontends/liberty/liberty.cc +++ b/frontends/liberty/liberty.cc @@ -143,8 +143,7 @@ static bool parse_func_reduce(RTLIL::Module *module, std::vector &stack } if (0 <= top-1 && stack[top-1].type == 2 && stack[top].type == 2) { - token_t t = token_t(2, create_and_cell(module, stack[top-2].sig, stack[top].sig)); - stack.pop_back(); + token_t t = token_t(2, create_and_cell(module, stack[top-1].sig, stack[top].sig)); stack.pop_back(); stack.pop_back(); stack.push_back(t);