Sfoglia il codice sorgente

quantize : fix confusing error message if ftype is invalid (#15071)

Sigbjørn Skjæret 5 mesi fa
parent
commit
2721257e3e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tools/quantize/quantize.cpp

+ 1 - 1
tools/quantize/quantize.cpp

@@ -611,7 +611,7 @@ int main(int argc, char ** argv) {
             return 1;
             return 1;
         }
         }
         if (!try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
         if (!try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
-            fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[3]);
+            fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[arg_idx]);
             return 1;
             return 1;
         }
         }
         if (ftype_str == "COPY") {
         if (ftype_str == "COPY") {