未验证 提交 b3024a13 编写于 作者: B Binrui Dong 提交者: GitHub

Fix a MSVC type conversion warning in sun_test.cpp (#54444)

上级 a52fd9c8
......@@ -531,7 +531,8 @@ static PointSet sun_positions_regular( time_point start, time_point end, time_du
REQUIRE( azimuth <= 360_degrees );
REQUIRE( altitude >= 0_degrees );
REQUIRE( altitude <= 90_degrees );
plot_points.emplace( azimuth / 4_degrees, altitude / 3_degrees );
plot_points.emplace( static_cast<int>( azimuth / 4_degrees ),
static_cast<int>( altitude / 3_degrees ) );
}
return plot_points;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册