diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-05-17 10:46:23 -0400 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-05-17 10:46:23 -0400 |
commit | f78eb3465f6798a0b094b6be12775380f4a8e8a7 (patch) | |
tree | a886760f1f82e7797f0f58d47b01be57969fa29b /decoder/hg.h | |
parent | bebc7faef73b5943279e692706950c1d6cda7f42 (diff) | |
parent | b95ef85087cda78386ded6a886d050f34879b75c (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/hg.h')
-rw-r--r-- | decoder/hg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder/hg.h b/decoder/hg.h index f0ddbb76..dfa4ac6d 100644 --- a/decoder/hg.h +++ b/decoder/hg.h @@ -189,7 +189,7 @@ public: o<<'('; show(o,show_mask); if (indent) o<<'\n'; - for (int i=0;i<tail_nodes_.size();++i) { + for (unsigned i=0;i<tail_nodes_.size();++i) { TEdgeHandle c=re(tail_nodes_[i],i,eh); Edge const* cp=c; if (cp) { @@ -314,7 +314,7 @@ public: private: void index_tails(Edge const& edge) { - for (int i = 0; i < edge.tail_nodes_.size(); ++i) + for (unsigned i = 0; i < edge.tail_nodes_.size(); ++i) nodes_[edge.tail_nodes_[i]].out_edges_.push_back(edge.id_); } public: @@ -348,7 +348,7 @@ public: edge->rule_ = rule; edge->tail_nodes_ = tail; edge->id_ = eid; - for (int i = 0; i < edge->tail_nodes_.size(); ++i) + for (unsigned i = 0; i < edge->tail_nodes_.size(); ++i) nodes_[edge->tail_nodes_[i]].out_edges_.push_back(edge->id_); return edge; } |