Skip to content

Commit

Permalink
Tensor.cpp : Fix memcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Oct 31, 2024
1 parent 8ad961b commit 7b2f27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GafferML/Tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ bool Tensor::isEqualTo( const IECore::Object *other ) const
using ElementType = remove_const_t<remove_pointer_t<decltype( data )>>;
const auto *otherData = otherTensor->m_state->value.GetTensorData<ElementType>();
const size_t count = m_state->value.GetTensorTypeAndShapeInfo().GetElementCount();
equal = memcmp( data, otherData, count * sizeof( *data ) );
equal = memcmp( data, otherData, count * sizeof( *data ) ) == 0;
}
);

Expand Down

0 comments on commit 7b2f27d

Please sign in to comment.