diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-03-16 15:10:25 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-03-25 08:07:18 +0000 |
commit | 1da93b2fcf57dc442952b65d599db4e209faa59f (patch) | |
tree | bfb4db44ff35a8e3c2ff28fcfba46fc1489ead7e | |
parent | c7d15b7c5e044f40167f4a79be8bf4f569c6b8be (diff) |
Add missing parentheses in conditional
Change-Id: I58dc19a06283a5999dbcd76f74d095daf0a9017d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | tests/auto/animation/animationutils/tst_animationutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/animation/animationutils/tst_animationutils.cpp b/tests/auto/animation/animationutils/tst_animationutils.cpp index 534eb1678..80d9a4d53 100644 --- a/tests/auto/animation/animationutils/tst_animationutils.cpp +++ b/tests/auto/animation/animationutils/tst_animationutils.cpp @@ -61,8 +61,8 @@ bool fuzzyCompare(float x1, float x2) { if (qFuzzyIsNull(x1) && qFuzzyIsNull(x2)) { return true; - } else if (qFuzzyIsNull(x1) && !qFuzzyIsNull(x2) || - !qFuzzyIsNull(x1) && qFuzzyIsNull(x2)) { + } else if ((qFuzzyIsNull(x1) && !qFuzzyIsNull(x2)) || + (!qFuzzyIsNull(x1) && qFuzzyIsNull(x2))) { return false; } else { return qFuzzyCompare(x1, x2); |