From a0433f14a461be207981345da1b935aa64bef0c2 Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 27 Oct 2023 11:33:37 +0800 Subject: [PATCH] Fix compilation error of CC_ASSERT_EQ in Mesh.cpp --- native/cocos/3d/assets/Mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/3d/assets/Mesh.cpp b/native/cocos/3d/assets/Mesh.cpp index 8446ec0f51e..08935f17d3a 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()) {