AP_Math: Replace deprecated benchmark function

* Been deprecated since 1.2.0

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-11-25 21:23:58 -07:00 committed by Andrew Tridgell
parent 2ee48dea29
commit 3965c7e4bf
1 changed files with 1 additions and 1 deletions

View File

@ -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;