fixed: silence signed / unsigned int comparison
authorvdrfan <vdrfan-nospam-@xbmc.org>
Thu, 5 Jul 2012 12:30:23 +0000 (14:30 +0200)
committervdrfan <vdrfan-nospam-@xbmc.org>
Thu, 5 Jul 2012 12:30:23 +0000 (14:30 +0200)
xbmc/pictures/Picture.cpp
xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp

index 34fc45e..3812b7f 100644 (file)
@@ -89,7 +89,7 @@ bool CPicture::CacheTexture(uint8_t *pixels, uint32_t width, uint32_t height, ui
   uint32_t max_height = g_advancedSettings.m_imageRes;
   if (g_advancedSettings.m_fanartRes > g_advancedSettings.m_imageRes)
   { // a separate fanart resolution is specified - check if the image is exactly equal to this res
-    if (width == g_advancedSettings.m_fanartRes * 16/9 && height == g_advancedSettings.m_fanartRes)
+    if (width == (unsigned int)g_advancedSettings.m_fanartRes * 16/9 && height == (unsigned int)g_advancedSettings.m_fanartRes)
     { // special case for fanart res
       max_height = g_advancedSettings.m_fanartRes;
     }
index 6b4efc3..b69310c 100644 (file)
@@ -253,7 +253,7 @@ void CGUIDialogVideoBookmarks::AddBookmark(CVideoInfoTag* tag)
 #endif
   int width = BOOKMARK_THUMB_WIDTH;
   int height = (int)(BOOKMARK_THUMB_WIDTH / aspectRatio);
-  if (height > BOOKMARK_THUMB_WIDTH)
+  if (height > (int)BOOKMARK_THUMB_WIDTH)
   {
     height = BOOKMARK_THUMB_WIDTH;
     width = (int)(BOOKMARK_THUMB_WIDTH * aspectRatio);