From 697287fbd7a8c8e21a36c9b73eeffecd6b862aaa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 5 Jun 2022 06:53:42 -0600 Subject: [PATCH] [benchmark-shape,hb-shape-threads] Fix argument parsing order After recent change. --- perf/benchmark-shape.cc | 4 ++-- test/threads/hb-shape-threads.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/perf/benchmark-shape.cc b/perf/benchmark-shape.cc index 4d3633500..626a59777 100644 --- a/perf/benchmark-shape.cc +++ b/perf/benchmark-shape.cc @@ -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]; } } diff --git a/test/threads/hb-shape-threads.cc b/test/threads/hb-shape-threads.cc index 16959caf3..96dff3441 100644 --- a/test/threads/hb-shape-threads.cc +++ b/test/threads/hb-shape-threads.cc @@ -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]; } }