From 9710d8c7a3307fd9477fb426ea1bab7804c6ef37 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 9 Nov 2012 16:39:12 +1100 Subject: 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 --- impl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'impl/main.cpp') 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 toSupplies(pANTLR3_BASE_TREE node) { vector 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 > toArcs(pANTLR3_BASE_TREE node) { vector > 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)); } -- cgit v1.2.3