From bb24276c69bfb7b3305290db6f78bb9cc6d6c4c3 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Sun, 27 Aug 2023 11:48:35 -0400 Subject: [PATCH] quantize : fix path parsing on Windows suggested by @slaren --- examples/quantize/quantize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp index 0e3a26b69..df9a214fc 100644 --- a/examples/quantize/quantize.cpp +++ b/examples/quantize/quantize.cpp @@ -114,7 +114,7 @@ int main(int argc, char ** argv) { std::string ftype_str; if (try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) { 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) { fpath = fname_inp.substr(0, pos + 1); }