From: reed@google.com Date: Fri, 27 Jul 2012 13:03:37 +0000 (+0000) Subject: use intptr_t to cast from ptr to int for masking low bits X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~15417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2fd13685ba0d7b3b7a2816c12379e0c61c6749b;p=platform%2Fupstream%2FlibSkiaSharp.git use intptr_t to cast from ptr to int for masking low bits git-svn-id: http://skia.googlecode.com/svn/trunk@4800 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/opts/SkBlitRow_opts_SSE2.cpp b/src/opts/SkBlitRow_opts_SSE2.cpp index 4a3aa0d..7149433 100644 --- a/src/opts/SkBlitRow_opts_SSE2.cpp +++ b/src/opts/SkBlitRow_opts_SSE2.cpp @@ -900,7 +900,7 @@ void S32A_D565_Blend_SSE2(uint16_t* SK_RESTRICT dst, void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int /*x*/, int /*y*/) { - while(((int)src & 0xf) && (count-- > 0)){ + while(((intptr_t)src & 0xf) && (count-- > 0)){ *dst = SkSrcOver32To16(*src, *dst); src++; dst++;