| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In https://crbug.com/747643, a new version of Clang produces warnings
when attempting to format NSInteger as %zd (which is normally used for
ssize_t). Acquiesce by casting NSInteger to long and formatting using
%ld.
In the process, I audited all occurrences of %zd in GTM and found that
the remainder were being used to format size_t, which ought to use %zu,
so I’ve corrected those.
I also audited the existing uses of %zu and found them all to be
correct.
|
| |
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
UIImage rotate method plus tests.
R=altse
APPROVED=altse
DELTA=152 (152 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
| |
Use UIImage drawing methods rather than CGContext. This respects the
UIImageOrientation unlike CGContext.
R=thomasvl
DELTA=21 (0 added, 14 deleted, 7 changed)
|
|
Add category extension to UIImage to allow resizing while preserving aspect
ratios and optional image clipping.
R=thomasvl,dmaclach
DELTA=507 (507 added, 0 deleted, 0 changed)
|