Bugfix in expression parser of read_liberty

This commit is contained in:
Clifford Wolf 2014-02-15 19:36:09 +01:00
parent cdf0f10760
commit 96b1ebc8dc
1 changed files with 1 additions and 2 deletions

View File

@ -143,8 +143,7 @@ static bool parse_func_reduce(RTLIL::Module *module, std::vector<token_t> &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);