Skip to content

Commit

Permalink
Fix test suite compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Nov 13, 2023
1 parent b0e3ba4 commit 396e5d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/flatzinc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ namespace Test { namespace FlatZinc {
std::string cmd("fzn-gecode");
int argc = static_cast<int>(_cmdlineOpt.size()) + 1;
std::vector<char*> argv(argc);
argv[0] = cmd.data();
argv[0] = const_cast<char*>(cmd.data());
for (int i = 1; i < argc; ++i) {
argv[i] = _cmdlineOpt[i-1].data();
argv[i] = const_cast<char*>(_cmdlineOpt[i-1].data());
}
fznopt.parse(argc, argv.data());
}
Expand Down

0 comments on commit 396e5d1

Please sign in to comment.