Fixed signed/unsigned comparison 95/311395/1
authorAdam Bialogonski <adam.b@samsung.com>
Mon, 20 May 2024 10:01:17 +0000 (11:01 +0100)
committerAdam Bialogonski <adam.b@samsung.com>
Mon, 20 May 2024 10:01:17 +0000 (11:01 +0100)
Change-Id: Icc5e4c3547458d230bf90ca814c204d99c8d51bc
Signed-off-by: Adam Bialogonski <adam.b@samsung.com>
dali-toolkit/internal/visuals/animated-image/animated-image-visual.cpp

index 60c0579..d8de5da 100644 (file)
@@ -346,14 +346,14 @@ void AnimatedImageVisual::DoCreatePropertyMap(Property::Map& map) const
   map.Insert(Toolkit::DevelImageVisual::Property::CURRENT_FRAME_NUMBER, (mImageCache) ? static_cast<int32_t>(mImageCache->GetCurrentFrameIndex()) : -1);
 
   // This returns -1 until the loading is finished.
-  int32_t frameCount = mFrameCount;
+  auto frameCount = int32_t(mFrameCount);
   if(mImageCache && frameCount == 0)
   {
     frameCount = mImageCache->GetTotalFrameCount();
 
-    if(frameCount <= SINGLE_IMAGE_COUNT && mAnimatedImageLoading && mAnimatedImageLoading.HasLoadingSucceeded())
+    if(frameCount <= int32_t(SINGLE_IMAGE_COUNT) && mAnimatedImageLoading && mAnimatedImageLoading.HasLoadingSucceeded())
     {
-      frameCount = mAnimatedImageLoading.GetImageCount();
+      frameCount = int32_t(mAnimatedImageLoading.GetImageCount());
     }
     else
     {