summaryrefslogtreecommitdiff
path: root/impl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'impl/main.cpp')
-rw-r--r--impl/main.cpp4
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));
}