diff options
Diffstat (limited to 'courgette/adjustment_method.cc')
-rw-r--r-- | courgette/adjustment_method.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/courgette/adjustment_method.cc b/courgette/adjustment_method.cc index eabb684..4f16944 100644 --- a/courgette/adjustment_method.cc +++ b/courgette/adjustment_method.cc @@ -524,7 +524,7 @@ class AssignmentProblem { Node* MakeRootNode(const Trace& trace) { Node* node = new Node(NULL, NULL); all_nodes_.push_back(node); - for (size_t i = 0; i < trace.size(); ++i) { + for (uint32 i = 0; i < trace.size(); ++i) { ++node->count_; node->places_.push_back(i); } @@ -635,7 +635,8 @@ class GraphAdjuster : public AdjustmentMethod { } void ReferenceLabel(Trace* trace, Label* label, bool is_model) { - trace->push_back(MakeLabelInfo(label, is_model, trace->size())); + trace->push_back(MakeLabelInfo(label, is_model, + static_cast<uint32>(trace->size()))); } LabelInfo* MakeLabelInfo(Label* label, bool is_model, uint32 position) { |