diff options
author | SemperVinco <w.deweijer@hotmail.com> | 2017-03-01 22:37:29 +0100 |
---|---|---|
committer | SemperVinco <w.deweijer@hotmail.com> | 2017-03-01 22:37:29 +0100 |
commit | 06afce8c3beb824e9c3d54320c10d1c26448c54d (patch) | |
tree | fd1abce39506e471de2ce5cac642e0b4c866ac79 | |
parent | 4b41b4dfc9619576317bc38298a6d815766f6f4b (diff) |
cast long to int
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |