fix(geofence_avoidance_planner): fix double-promotion clang-tidy warning

Cast NAN to double when constructing Vector2d to avoid
-Wdouble-promotion.
This commit is contained in:
Balduin
2026-04-27 11:34:02 +02:00
parent e69e4432ec
commit 53b73bb473
@@ -70,7 +70,7 @@ struct PlannedPath {
return points[current_index++];
} else {
return matrix::Vector2d{NAN, NAN};
return matrix::Vector2d{(double)NAN, (double)NAN};
}
}
@@ -82,7 +82,7 @@ struct PlannedPath {
return points[current_index];
}
return matrix::Vector2d{NAN, NAN};
return matrix::Vector2d{(double)NAN, (double)NAN};
}
};