From: Woochan Lee Date: Thu, 22 May 2025 10:52:58 +0000 (+0900) Subject: (UsdLoader) Fix coverity issue - uint32 can't have less than 0 value X-Git-Tag: accepted/tizen/unified/20250530.090430^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff9f11d29df2acbb48bef7b462670207268d872d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git (UsdLoader) Fix coverity issue - uint32 can't have less than 0 value This reverts commit 2f2d85e30d941f287f2771d167d3be5cc814dae2. Change-Id: I1fb0f482a1d5302cbb606cfdb838a0239a2ded79 Signed-off-by: Woochan Lee --- 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.