diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-11-09 16:39:12 +1100 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-11-09 16:39:12 +1100 |
commit | 9710d8c7a3307fd9477fb426ea1bab7804c6ef37 (patch) | |
tree | b6e1462e3d3b0ed414edafc2242e01822ceb22cd /impl/main.cpp | |
parent | b19bd8d8a41664328f33c9b459b2b0100f0b303f (diff) |
A bunch of changes to make it build nicer
In particular:
- fix up the MCF sovler to get rid of all the warnings/errors
- make the build with Wall and Werror and whatnot again
Diffstat (limited to 'impl/main.cpp')
-rw-r--r-- | impl/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/impl/main.cpp b/impl/main.cpp index 0daa72a..267d11c 100644 --- a/impl/main.cpp +++ b/impl/main.cpp @@ -26,7 +26,7 @@ vector<T> toSupplies(pANTLR3_BASE_TREE node) { vector<T> supplies; pANTLR3_BASE_TREE childNode; - for (int i = 0; i < num; ++i) { + for (unsigned int i = 0; i < num; ++i) { childNode = (pANTLR3_BASE_TREE) node->getChild(node, i); stringstream stream((char*)childNode->getText(childNode)->chars); assert(stream >> output); @@ -65,7 +65,7 @@ vector<pair<int,int> > toArcs(pANTLR3_BASE_TREE node) { vector<pair<int,int> > arcs; ANTLR3_UINT32 num = node->getChildCount(node); pANTLR3_BASE_TREE childNode; - for (int i = 0; i < num; ++i) { + for (unsigned int i = 0; i < num; ++i) { childNode = (pANTLR3_BASE_TREE) node->getChild(node, i); arcs.push_back(toArc(childNode)); } |