diff options
author | Chris Dyer <redpony@gmail.com> | 2014-03-27 00:11:01 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-03-27 00:11:01 -0400 |
commit | b27675f6d29a5b5da2f4211f3aa216aa321b2b97 (patch) | |
tree | b03e6aefc288729a7733ff0fd3b328d99a723ad2 /decoder | |
parent | 26ad3172c1c5712e877e05c01db3d03f50a5d98b (diff) |
remove warnings
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/tree_fragment.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/decoder/tree_fragment.h b/decoder/tree_fragment.h index b1dbbae0..a38dbdfa 100644 --- a/decoder/tree_fragment.h +++ b/decoder/tree_fragment.h @@ -91,14 +91,10 @@ class BreadthFirstIterator : public std::iterator<std::forward_iterator_tag, uns void Stage() { if (q_.empty()) return; const TFIState& s = q_.front(); - if (s.rhspos < 0) { - sym = tf_->nodes[s.node].lhs; - } else { - sym = tf_->nodes[s.node].rhs[s.rhspos]; - if (IsInternalNT(sym)) { - q_.push(TFIState(sym & ALL_MASK, 0)); - sym = tf_->nodes[sym & ALL_MASK].lhs; - } + sym = tf_->nodes[s.node].rhs[s.rhspos]; + if (IsInternalNT(sym)) { + q_.push(TFIState(sym & ALL_MASK, 0)); + sym = tf_->nodes[sym & ALL_MASK].lhs; } } const BreadthFirstIterator& operator++() { |