Sign compare fix

This commit is contained in:
Pavel Kirienko
2014-05-06 02:28:42 +04:00
parent 0a9169fe87
commit 87402b9701
+1 -1
View File
@@ -149,7 +149,7 @@ bool Frame::compile(CanFrame& out_can_frame) const
case TransferTypeServiceRequest:
case TransferTypeMessageUnicast:
{
assert((payload_len_ + 1) <= sizeof(out_can_frame.data));
assert((payload_len_ + 1U) <= sizeof(out_can_frame.data));
out_can_frame.data[0] = dst_node_id_.get();
out_can_frame.dlc = payload_len_ + 1;
(void)copy(payload_, payload_ + payload_len_, out_can_frame.data + 1);