From ff9f11d29df2acbb48bef7b462670207268d872d Mon Sep 17 00:00:00 2001 From: Woochan Lee Date: Thu, 22 May 2025 19:52:58 +0900 Subject: [PATCH] (UsdLoader) Fix coverity issue - uint32 can't have less than 0 value This reverts commit 2f2d85e30d941f287f2771d167d3be5cc814dae2. Change-Id: I1fb0f482a1d5302cbb606cfdb838a0239a2ded79 Signed-off-by: Woochan Lee --- dali-usd-loader/internal/usd-loader-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-usd-loader/internal/usd-loader-impl.cpp b/dali-usd-loader/internal/usd-loader-impl.cpp index 0f60138a35..b4d3712b0e 100644 --- a/dali-usd-loader/internal/usd-loader-impl.cpp +++ b/dali-usd-loader/internal/usd-loader-impl.cpp @@ -696,7 +696,7 @@ void UsdLoaderImpl::Impl::ProcessMeshTexcoords(MeshDefinition& meshDefinition, s // Handle vertex-based UVs for(auto x : subIndexArray) { - if(DALI_UNLIKELY(x < 0 || static_cast(x) >= rawUVs.size())) + if(DALI_UNLIKELY(static_cast(x) >= rawUVs.size())) { // This should never happen. The USD spec and the “indexed” primvar APIs guarantee that // you will never have an index that lies outside the authored-values array. -- 2.34.1