aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-06 02:21:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-06 02:21:19 +0000
commit0cff496ad0f2a3b8302e6c815a50fd7d0628526d (patch)
tree048092e9c508e94601ae03845b94c4ce29e2b049
parentb16da2189f013e44ba5b44b843f784110fa0ffe6 (diff)
parent0da7ab65c6faaf7c8c39edf3612206703997334b (diff)
downloadjpeg-0cff496ad0f2a3b8302e6c815a50fd7d0628526d.tar.gz
Merge "jpeg: fix compiling for 64-bit"
-rw-r--r--jmorecfg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jmorecfg.h b/jmorecfg.h
index 71cb393..66116db 100644
--- a/jmorecfg.h
+++ b/jmorecfg.h
@@ -22,7 +22,7 @@
#ifdef ANDROID_RGB
#define PACK_SHORT_565(r,g,b) ((((r)<<8)&0xf800)|(((g)<<3)&0x7E0)|((b)>>3))
#define PACK_TWO_PIXELS(l,r) ((r<<16) | l)
-#define PACK_NEED_ALIGNMENT(ptr) (((int)(ptr))&3)
+#define PACK_NEED_ALIGNMENT(ptr) (((uintptr_t)(ptr))&3)
#define WRITE_TWO_PIXELS(addr, pixels) do { \
((INT16*)(addr))[0] = (pixels); \
((INT16*)(addr))[1] = (pixels)>>16; \