@@ -338,7 +338,7 @@ void ImageGridComponent<T>::updateTiles()
338338 // Stop updating the tiles at highest scroll speed
339339 if (mScrollTier == 3 )
340340 {
341- for (int ti = 0 ; ti < mTiles .size (); ti++)
341+ for (int ti = 0 ; ti < ( int ) mTiles .size (); ti++)
342342 {
343343 std::shared_ptr<GridTileComponent> tile = mTiles .at (ti);
344344
@@ -354,12 +354,12 @@ void ImageGridComponent<T>::updateTiles()
354354
355355 // If going down, update from top to bottom
356356 // If going up, update from bottom to top
357- int ti = scrollDirection == 1 ? 0 : mTiles .size () - 1 ;
358- int end = scrollDirection == 1 ? mTiles .size () : -1 ;
357+ int ti = scrollDirection == 1 ? 0 : ( int ) mTiles .size () - 1 ;
358+ int end = scrollDirection == 1 ? ( int ) mTiles .size () : -1 ;
359359
360360 int img = getStartPosition ();
361361 if (scrollDirection == -1 )
362- img += mTiles .size () - 1 ;
362+ img += ( int ) mTiles .size () - 1 ;
363363
364364 // Calculate buffer size depending on scroll speed and direction
365365 int bufferBehind = (texBuffersForward[3 ] - texBuffersBehind[mScrollTier ]) * mGridDimension .x ();
@@ -387,7 +387,7 @@ void ImageGridComponent<T>::updateTileAtPos(int tilePos, int imgPos, int bufferT
387387
388388 // If we have more tiles than we have to display images on screen, hide them
389389 if (imgPos < 0 || imgPos >= size ()
390- || tilePos < bufferTop || tilePos >= mTiles .size () - bufferBot) // Same for tiles out of the buffer
390+ || tilePos < bufferTop || tilePos >= ( int ) mTiles .size () - bufferBot) // Same for tiles out of the buffer
391391 {
392392 tile->setSelected (false );
393393 tile->setImage (" " );
0 commit comments