diff options
author | Adrian McCarthy <amccarth@google.com> | 2018-04-19 18:31:57 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2018-04-19 18:31:57 +0000 |
commit | 4ee16bfff7f0b7700c2c712d954d37c17200eab0 (patch) | |
tree | 3eab488fa358ca5809726cad1ac4d6c00967de36 /lldb/unittests/Core/ScalarTest.cpp | |
parent | d488daa0329c6d6edac929687fa842f759375c1a (diff) | |
download | bcm5719-llvm-4ee16bfff7f0b7700c2c712d954d37c17200eab0.tar.gz bcm5719-llvm-4ee16bfff7f0b7700c2c712d954d37c17200eab0.zip |
Fix narrowing warning by appending `f` to literal constant.
llvm-svn: 330354
Diffstat (limited to 'lldb/unittests/Core/ScalarTest.cpp')
-rw-r--r-- | lldb/unittests/Core/ScalarTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/Core/ScalarTest.cpp b/lldb/unittests/Core/ScalarTest.cpp index 6ccc3907064..5fad1691fdd 100644 --- a/lldb/unittests/Core/ScalarTest.cpp +++ b/lldb/unittests/Core/ScalarTest.cpp @@ -31,7 +31,7 @@ TEST(ScalarTest, RightShiftOperator) { TEST(ScalarTest, GetBytes) { int a = 0x01020304; long long b = 0x0102030405060708LL; - float c = 1234567.89e32; + float c = 1234567.89e32f; double d = 1234567.89e42; char e[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; char f[32] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |