From 92e38160d60f704a137dfd72c7bea0ea0474e26b Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Tue, 27 Oct 2015 13:44:19 +0100 Subject: [PATCH] Fix compilation error introduced in commit 6406d8e526c3c19878a490aac3056dad5b5faf74 --- SDWebImage/SDWebImagePrefetcher.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImagePrefetcher.m b/SDWebImage/SDWebImagePrefetcher.m index 7447a8652..a2ad8a86b 100644 --- a/SDWebImage/SDWebImagePrefetcher.m +++ b/SDWebImage/SDWebImagePrefetcher.m @@ -125,7 +125,7 @@ - (void)prefetchURLs:(NSArray *)urls progress:(SDWebImagePrefetcherProgressBlock NSInteger maxNumberOfImages = self.prefetchURLs.count; - dispatch_apply(maxNumberOfImages/self.maxConcurrentDownloads, dispatch_get_global_queue(self.prefetcherQueue, 0), ^(size_t index) { + dispatch_apply(maxNumberOfImages/self.maxConcurrentDownloads, self.prefetcherQueue, ^(size_t index) { size_t i = index * self.maxConcurrentDownloads; size_t stop = i + self.maxConcurrentDownloads; do {