Fix 64bit precision loss warnings

This commit is contained in:
Alex Burgel 2013-10-31 15:01:41 -04:00
parent 21cd001f51
commit 06474aacb0
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ static SDWebImageManager *instance;
{
// Delegates notified, remove downloader and delegate
// The delegate callbacks above may have modified the arrays, hence we search for the correct index
int idx = [downloadDelegates indexOfObjectIdenticalTo:delegate];
NSUInteger idx = [downloadDelegates indexOfObjectIdenticalTo:delegate];
if (idx != NSNotFound)
{
[downloaders removeObjectAtIndex:idx];
@ -292,7 +292,7 @@ static SDWebImageManager *instance;
// Delegates notified, remove url and delegate
// The delegate callbacks above may have modified the arrays, hence we search for the correct index
int removeIdx = [self indexOfDelegate:delegate waitingForURL:url];
NSUInteger removeIdx = [self indexOfDelegate:delegate waitingForURL:url];
if (removeIdx != NSNotFound)
{
[cacheDelegates removeObjectAtIndex:removeIdx];