diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-02-11 15:30:07 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-02-11 15:30:07 +0000 |
commit | c6f01d86c37bd4e304fc26dd76cf007332ce4c10 (patch) | |
tree | 8306ff41237b02d9336d8ddc0dd34a47f8a773c7 /iPhone | |
parent | b60bdc4c3663367aa85f2a00081331a23ee6bf1d (diff) |
Fix compilation warning when building for arm64
When building for arm64, NSInteger is a 64-bit value. Recommendations
are to either use "%ld" and cast the value to long or to use "%zd".
This patch uses "%zd" that work on both armv7 and arm64 as it avoid
doing a cast.
DELTA=1 (0 added, 0 deleted, 1 changed)
Diffstat (limited to 'iPhone')
-rw-r--r-- | iPhone/GTMUIImage+Resize.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iPhone/GTMUIImage+Resize.m b/iPhone/GTMUIImage+Resize.m index 49b82c8..c22515e 100644 --- a/iPhone/GTMUIImage+Resize.m +++ b/iPhone/GTMUIImage+Resize.m @@ -152,7 +152,7 @@ GTM_INLINE CGSize swapWidthAndHeight(CGSize size) { break; default: - _GTMDevAssert(false, @"Invalid orientation %d", orientation); + _GTMDevAssert(false, @"Invalid orientation %zd", orientation); return nil; } |