quantize : fix path parsing on Windows
suggested by @slaren
This commit is contained in:
parent
7f1c434e73
commit
bb24276c69
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ int main(int argc, char ** argv) {
|
||||||
std::string ftype_str;
|
std::string ftype_str;
|
||||||
if (try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
|
if (try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
|
||||||
std::string fpath;
|
std::string fpath;
|
||||||
const size_t pos = fname_inp.find_last_of('/');
|
const size_t pos = fname_inp.find_last_of("/\\");
|
||||||
if (pos != std::string::npos) {
|
if (pos != std::string::npos) {
|
||||||
fpath = fname_inp.substr(0, pos + 1);
|
fpath = fname_inp.substr(0, pos + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue