Compilation error fixes, thanks GCC 4.8

This commit is contained in:
Pavel Kirienko
2014-04-02 14:12:21 +04:00
parent 9e91cd1e7c
commit e485541c2e
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -175,7 +175,7 @@ bool Frame::isValid() const
(src_node_id_ == dst_node_id_) ||
((transfer_type_ == TransferTypeMessageBroadcast) != dst_node_id_.isBroadcast()) ||
(transfer_type_ >= NumTransferTypes) ||
(payload_len_ > getMaxPayloadLen()) ||
(static_cast<int>(payload_len_) > getMaxPayloadLen()) ||
(!data_type_id_.isValid());
return !invalid;
@@ -213,7 +213,7 @@ std::string Frame::toString() const
int(data_type_id_.get()), int(transfer_type_), int(src_node_id_.get()),
int(dst_node_id_.get()), int(frame_index_), int(last_frame_), int(transfer_id_.get()));
for (int i = 0; i < payload_len_; i++)
for (unsigned i = 0; i < payload_len_; i++)
{
ofs += snprintf(buf + ofs, BUFLEN - ofs, "%02x", payload_[i]);
if ((i + 1) < payload_len_)