diff --git a/src/GafferML/Tensor.cpp b/src/GafferML/Tensor.cpp index 41a55ff9b96..41fbecf36a6 100644 --- a/src/GafferML/Tensor.cpp +++ b/src/GafferML/Tensor.cpp @@ -274,7 +274,7 @@ bool Tensor::isEqualTo( const IECore::Object *other ) const using ElementType = remove_const_t>; const auto *otherData = otherTensor->m_state->value.GetTensorData(); const size_t count = m_state->value.GetTensorTypeAndShapeInfo().GetElementCount(); - equal = memcmp( data, otherData, count * sizeof( *data ) ); + equal = memcmp( data, otherData, count * sizeof( *data ) ) == 0; } );