diff options
author | Stephen Hines <srhines@google.com> | 2013-01-10 15:09:02 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-01-10 15:09:02 -0800 |
commit | 9be5f0a30653bfb3619726c96ec4a03c3b1c7996 (patch) | |
tree | 3e94640d95087596190e580ed19d49cb073bf850 | |
parent | 017129481b50b41a6ed102c76efe8b12d617a5ea (diff) | |
download | frameworks_base-9be5f0a30653bfb3619726c96ec4a03c3b1c7996.zip frameworks_base-9be5f0a30653bfb3619726c96ec4a03c3b1c7996.tar.gz frameworks_base-9be5f0a30653bfb3619726c96ec4a03c3b1c7996.tar.bz2 |
Add parentheses for latest Clang warnings.
Change-Id: I843fd3eb44e1ab0a177d7045ca97cf146fd81231
-rw-r--r-- | tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/colorcube.rs | 6 |
1 files 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); |