From 3965c7e4bf3ed28e2fc8c20031f663317efe78aa Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Sat, 25 Nov 2023 21:23:58 -0700 Subject: [PATCH] AP_Math: Replace deprecated benchmark function * Been deprecated since 1.2.0 Signed-off-by: Ryan Friedman --- libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp b/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp index 71da640b0a..684a9ec8de 100644 --- a/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp +++ b/libraries/AP_Math/benchmarks/benchmark_geodesic_grid.cpp @@ -86,7 +86,7 @@ static bool section_triangle(unsigned int section_index, static void BM_GeodesicGridSections(benchmark::State& state) { Vector3f v, a, b, c; - int section = state.range_x(); + int section = state.range(0); section_triangle(section, a, b, c); v = (a + b + c) / 3.0f;