From 06afce8c3beb824e9c3d54320c10d1c26448c54d Mon Sep 17 00:00:00 2001 From: SemperVinco Date: Wed, 1 Mar 2017 22:37:29 +0100 Subject: cast long to int --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-70-g09d2