aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemperVinco <w.deweijer@hotmail.com>2017-03-01 22:37:29 +0100
committerSemperVinco <w.deweijer@hotmail.com>2017-03-01 22:37:29 +0100
commit06afce8c3beb824e9c3d54320c10d1c26448c54d (patch)
treefd1abce39506e471de2ce5cac642e0b4c866ac79
parent4b41b4dfc9619576317bc38298a6d815766f6f4b (diff)
cast long to int
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 30002a8..6db9cd5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -232,7 +232,7 @@ int main(int argc,char **argv){
assert(f);
teams.push_back(assemble(preprocess(f)));
if(opt_pos) {
- positions.push_back({strtol(argv[i+1],NULL,10), strtol(argv[i+2],NULL,10)}); // TODO: check if i>argc
+ positions.push_back({(int)strtol(argv[i+1],NULL,10), (int)strtol(argv[i+2],NULL,10)}); // TODO: check if i>argc
i += 2;
}
}