Skip to content

Commit

Permalink
Correct logic error on SerializedPayload::operator==
Browse files Browse the repository at this point in the history
  • Loading branch information
IkerLuengo committed Feb 6, 2020
1 parent ed797ae commit e4b18c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fastrtps/rtps/common/SerializedPayload.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace eprosima{
{
return ((encapsulation == other.encapsulation) &&
(length == other.length) &&
(memcmp(data, other.data, length)));
(0 == memcmp(data, other.data, length)));
}

/*!
Expand Down

0 comments on commit e4b18c3

Please sign in to comment.