From ccf14fd17d6ea6f0acd4ff57758221e2d8fc274e Mon Sep 17 00:00:00 2001 From: helly Date: Sat, 8 Apr 2006 19:21:53 +0000 Subject: [PATCH] - Simplify fillIndex handling in need() --- code.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code.cc b/code.cc index 53820f82..82d541be 100644 --- a/code.cc +++ b/code.cc @@ -293,18 +293,14 @@ void genIf(std::ostream &o, uint ind, const char *cmp, uint v, bool &readCh) static void need(std::ostream &o, uint ind, uint n, bool & readCh) { - uint fillIndex; + uint fillIndex = vFillIndexes; bool hasFillIndex = (0<=vFillIndexes); if (hasFillIndex) { - fillIndex = vFillIndexes++; + vFillIndexes++; o << indent(ind) << "YYSETSTATE(" << fillIndex << ");\n"; } - else - { - fillIndex = ~0; - } if (n == 1) { -- 2.50.1