Skip to content

Commit

Permalink
Use char version of find_last_of when possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and NikolajBjorner committed Aug 2, 2022
1 parent b361226 commit 8313282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/lp/lp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@ void test_out_dir(std::string out_dir) {

void find_dir_and_file_name(std::string a, std::string & dir, std::string& fn) {
// todo: make it system independent
size_t last_slash_pos = a.find_last_of("/");
size_t last_slash_pos = a.find_last_of('/');
if (last_slash_pos >= a.size()) {
std::cout << "cannot find file name in " << a << std::endl;
throw;
Expand Down

0 comments on commit 8313282

Please sign in to comment.