summaryrefslogtreecommitdiff
path: root/libs/hwui/Matrix.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2016-05-19 23:02:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-05-19 23:02:55 +0000
commite66235bf00a695cacb44b0bc1a241cabb7de3b96 (patch)
treed1589223a986b7137e5460cf170f71d91e4dad53 /libs/hwui/Matrix.cpp
parent53ccfe848f1b97cca12c7e5b496032e97594a8e2 (diff)
parentcef190de850f163dd4b95d667a8d46d46e860363 (diff)
Merge "Fix misc-macro-parentheses warnings in hwui and graphic jni."
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r--libs/hwui/Matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp
index 06e67c0e85ad..872abde2c765 100644
--- a/libs/hwui/Matrix.cpp
+++ b/libs/hwui/Matrix.cpp
@@ -425,7 +425,7 @@ void Matrix4::mapPoint3d(Vector3& vec) const {
vec.z = orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ];
}
-#define MUL_ADD_STORE(a, b, c) a = (a) * (b) + (c)
+#define MUL_ADD_STORE(a, b, c) ((a) = (a) * (b) + (c))
void Matrix4::mapPoint(float& x, float& y) const {
if (isSimple()) {