aboutsummaryrefslogtreecommitdiff
path: root/tests/fenv_test.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-01-24 14:26:10 -0800
committerChih-Hung Hsieh <chh@google.com>2020-01-24 14:28:45 -0800
commit7d66bf9d901f5db995c991e07c0c4b89f73be01b (patch)
tree6657a4c551776959816b5bf13e81650045ec374b /tests/fenv_test.cpp
parent3ff4245c70a0cd340a5231f7f1f7d98608a47b53 (diff)
downloadbionic-7d66bf9d901f5db995c991e07c0c4b89f73be01b.tar.gz
Fix new clang compiler warning
Bug: 148287059 Test: make Change-Id: I24972955454fa40fc565744e2caaaa636caa44c2
Diffstat (limited to 'tests/fenv_test.cpp')
-rw-r--r--tests/fenv_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fenv_test.cpp b/tests/fenv_test.cpp
index d27808f1e..e983a1c08 100644
--- a/tests/fenv_test.cpp
+++ b/tests/fenv_test.cpp
@@ -27,7 +27,7 @@ static void TestRounding(float expectation1, float expectation2) {
volatile float m = 0x1.0p23f;
volatile float x = f + m;
ASSERT_FLOAT_EQ(expectation1, x);
- x -= m;
+ x = x - m;
ASSERT_EQ(expectation2, x);
}