From 93d6612f67d8354549ac3bc4f0124c01a3a5e328 Mon Sep 17 00:00:00 2001 From: Evgenii Malygin Date: Thu, 12 Mar 2026 15:05:32 -0400 Subject: [PATCH] Fix[rmqio_serializedframe.cpp]: non-equal operator If two `SerializedFrames` have different length, "not-equal" operator should return `true` Signed-off-by: Evgenii Malygin --- src/rmq/rmqio/rmqio_serializedframe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rmq/rmqio/rmqio_serializedframe.cpp b/src/rmq/rmqio/rmqio_serializedframe.cpp index f1d019aa..6d9294b5 100644 --- a/src/rmq/rmqio/rmqio_serializedframe.cpp +++ b/src/rmq/rmqio/rmqio_serializedframe.cpp @@ -47,8 +47,8 @@ bool SerializedFrame::operator==(const SerializedFrame& other) const bool SerializedFrame::operator!=(const SerializedFrame& other) const { - if (d_length == other.d_length) { - return false; + if (d_length != other.d_length) { + return true; } if (!d_buffer || !other.d_buffer) {