summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2018-04-19 18:31:57 +0000
committerAdrian McCarthy <amccarth@google.com>2018-04-19 18:31:57 +0000
commit18c03aa9622b1629d80fe2cf27cae1817c7b921a (patch)
treea11c358429c8170645585629de1d66976caf04b2
parent45f583997d36ec5e154115d58dac3afc5ffdb3d8 (diff)
Fix narrowing warning by appending `f` to literal constant.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@330354 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/Core/ScalarTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Core/ScalarTest.cpp b/unittests/Core/ScalarTest.cpp
index 6ccc39070..5fad1691f 100644
--- a/unittests/Core/ScalarTest.cpp
+++ b/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,