Error codes are constants, not enum. That fixes another MISRA violation.

This commit is contained in:
Pavel Kirienko
2014-04-19 14:13:55 +04:00
parent 519532da14
commit ace2cf9d0e
2 changed files with 17 additions and 14 deletions
@@ -226,7 +226,7 @@ class SocketCanIface : public uavcan::ICanIface
/*
* Flags
*/
loopback = !!(msg.msg_flags & MSG_CONFIRM);
loopback = (msg.msg_flags & static_cast<int>(MSG_CONFIRM)) != 0;
return 1;
}