From 5e8849365b3fd7ec40b78a076ec0276cd450dce2 Mon Sep 17 00:00:00 2001 From: HiddenBug <53543663+HiddenBug@users.noreply.github.com> Date: Mon, 11 Nov 2019 11:45:18 +0100 Subject: [PATCH] Fix implicit conversion errors --- .../test/unittests/unittest_speed_observer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prbt_hardware_support/test/unittests/unittest_speed_observer.cpp b/prbt_hardware_support/test/unittests/unittest_speed_observer.cpp index f40da7892..6f0495025 100644 --- a/prbt_hardware_support/test/unittests/unittest_speed_observer.cpp +++ b/prbt_hardware_support/test/unittests/unittest_speed_observer.cpp @@ -148,14 +148,14 @@ MATCHER_P2(SpeedAtIGe, i, x, "Speed at index " + PrintToString(i) + std::string(negation ? "is not" : "is") + " greater or equal to" + PrintToString(x) + ".") { - return static_cast(i) < arg->name.size() && arg->speed.at(i) >= x; + return static_cast(i) < arg->name.size() && arg->speed.at(static_cast(i)) >= x; } MATCHER_P2(SpeedAtILe, i, x, "Speed at index " + PrintToString(i) + std::string(negation ? "is not" : "is") + " less or equal to" + PrintToString(x) + ".") { - return static_cast(i) < arg->name.size() && arg->speed.at(i) <= x; + return static_cast(i) < arg->name.size() && arg->speed.at(static_cast(i)) <= x; } /**