[benchmark-shape,hb-shape-threads] Fix argument parsing order

After recent change.
This commit is contained in:
Behdad Esfahbod 2022-06-05 06:53:42 -06:00
parent c03a31417b
commit 697287fbd7
2 changed files with 4 additions and 4 deletions

View File

@ -145,8 +145,8 @@ int main(int argc, char** argv)
for (unsigned i = 0; i < num_tests; i++)
{
tests[i].is_variable = true;
tests[i].text_path = argv[1 + i * 2];
tests[i].font_path = argv[2 + i * 2];
tests[i].font_path = argv[1 + i * 2];
tests[i].text_path = argv[2 + i * 2];
}
}

View File

@ -185,8 +185,8 @@ int main(int argc, char** argv)
for (unsigned i = 0; i < num_tests; i++)
{
tests[i].is_variable = true;
tests[i].text_path = argv[3 + i * 2];
tests[i].font_path = argv[4 + i * 2];
tests[i].font_path = argv[3 + i * 2];
tests[i].text_path = argv[4 + i * 2];
}
}