diff options
author | Colin Cross <ccross@android.com> | 2014-02-05 18:09:45 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-02-05 18:09:45 -0800 |
commit | 0da7ab65c6faaf7c8c39edf3612206703997334b (patch) | |
tree | 048092e9c508e94601ae03845b94c4ce29e2b049 | |
parent | b16da2189f013e44ba5b44b843f784110fa0ffe6 (diff) | |
download | jpeg-0da7ab65c6faaf7c8c39edf3612206703997334b.tar.gz |
jpeg: fix compiling for 64-bit
Cast pointers to uintptr_t instead of int to test alignment.
Change-Id: If959132a4bc52a151bcbe03702b24f4a202bfb1c
-rw-r--r-- | jmorecfg.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |