diff --git a/native/cocos/3d/assets/Mesh.cpp b/native/cocos/3d/assets/Mesh.cpp index 8446ec0f51..08935f17d3 100644 --- a/native/cocos/3d/assets/Mesh.cpp +++ b/native/cocos/3d/assets/Mesh.cpp @@ -1338,7 +1338,7 @@ void Mesh::tryConvertVertexData() { const uint32_t stride = view.stride; uint32_t dstStride = stride; - CC_ASSERT_EQ(count * stride == length); + CC_ASSERT_EQ(count * stride, length); checkAttributesNeedConvert(orignalAttributes, attributes, attributeIndicsNeedConvert, dstStride); if (attributeIndicsNeedConvert.empty()) {