We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ce9a7 commit 71a97afCopy full SHA for 71a97af
examples/quantize/quantize.cpp
@@ -100,7 +100,7 @@ int main(int argc, char ** argv) {
100
}
101
102
103
- if (argc - arg_idx < 3) {
+ if (argc - arg_idx < 2) {
104
usage(argv[0]);
105
106
@@ -114,7 +114,7 @@ int main(int argc, char ** argv) {
114
std::string ftype_str;
115
if (try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
116
std::string fpath;
117
- const size_t pos = fname_inp.find_last_of('/');
+ const size_t pos = fname_inp.find_last_of("/\\");
118
if (pos != std::string::npos) {
119
fpath = fname_inp.substr(0, pos + 1);
120
0 commit comments