From 2aeed9830ed1be7d3f4c8e8ffa1792aa44633432 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Thu, 12 Apr 2012 15:04:09 -0700 Subject: [PATCH] Brace-wraps inline struct initializer --- SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);