From 9be5f0a30653bfb3619726c96ec4a03c3b1c7996 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 10 Jan 2013 15:09:02 -0800 Subject: Add parentheses for latest Clang warnings. Change-Id: I843fd3eb44e1ab0a177d7045ca97cf146fd81231 --- .../ImageProcessing/src/com/android/rs/image/colorcube.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/colorcube.rs b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/colorcube.rs index 5250474..fda0d1e 100644 --- a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/colorcube.rs +++ b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/colorcube.rs @@ -62,10 +62,10 @@ void root(const uchar4 *in, uchar4 *out, uint32_t x, uint32_t y) { uint4 yz01 = ((v001 * weight1.x) + (v101 * weight2.x)) >> (int4)8; uint4 yz11 = ((v011 * weight1.x) + (v111 * weight2.x)) >> (int4)8; - uint4 z0 = (yz00 * weight1.y) + (yz10 * weight2.y) >> (int4)16; - uint4 z1 = (yz01 * weight1.y) + (yz11 * weight2.y) >> (int4)16; + uint4 z0 = ((yz00 * weight1.y) + (yz10 * weight2.y)) >> (int4)16; + uint4 z1 = ((yz01 * weight1.y) + (yz11 * weight2.y)) >> (int4)16; - uint4 v = (z0 * weight1.z) + (z1 * weight2.z) >> (int4)16; + uint4 v = ((z0 * weight1.z) + (z1 * weight2.z)) >> (int4)16; uint4 v2 = (v + 0x7f) >> (int4)8; *out = convert_uchar4(v2); -- cgit v1.1