mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 06:03:34 +08:00
Extra warnings for the debug build: -Wfloat-equal -Wconversion. The code was fixed accordingly. No broken tests.
This commit is contained in:
@@ -68,7 +68,7 @@ std::string CanFrame::toString(StringRepresentation mode) const
|
||||
char buf[50];
|
||||
char* wpos = buf;
|
||||
char* const epos = buf + sizeof(buf);
|
||||
fill(buf, buf + sizeof(buf), 0);
|
||||
fill(buf, buf + sizeof(buf), uint8_t(0));
|
||||
|
||||
if (id & FlagEFF)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user