diff --git a/SDWebImageDecoder.m b/SDWebImageDecoder.m index 7fed5ec0..2e9cdc9a 100644 --- a/SDWebImageDecoder.m +++ b/SDWebImageDecoder.m @@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance; CGColorSpaceRelease(colorSpace); if (!context) return nil; - CGRect rect = (CGRect){CGPointZero, CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}; + CGRect rect = (CGRect){CGPointZero, { CGImageGetWidth(imageRef), CGImageGetHeight(imageRef) } }; CGContextDrawImage(context, rect, imageRef); CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGContextRelease(context);