Skip to content

Commit 03d5144

Browse files
youtalkBlyron
authored andcommitted
fix(LibCarla): use double literal in Lane::GetWidth return
Lane::GetWidth() returns double but the fallback path returned 0.0f (float literal). Use 0.0 for consistency with the return type. Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
1 parent 815b8ba commit 03d5144

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LibCarla/source/carla/road/Lane.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace road {
6161
if(width_info != nullptr){
6262
return width_info->GetPolynomial().Evaluate(s);
6363
}
64-
return 0.0f;
64+
return 0.0;
6565
}
6666

6767
bool Lane::IsStraight() const {

0 commit comments

Comments
 (0)