Author: amccarth Date: Thu Apr 19 11:31:57 2018 New Revision: 330354 URL: http://llvm.org/viewvc/llvm-project?rev=330354&view=rev Log: Fix narrowing warning by appending `f` to literal constant.
Modified: lldb/trunk/unittests/Core/ScalarTest.cpp Modified: lldb/trunk/unittests/Core/ScalarTest.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Core/ScalarTest.cpp?rev=330354&r1=330353&r2=330354&view=diff ============================================================================== --- lldb/trunk/unittests/Core/ScalarTest.cpp (original) +++ lldb/trunk/unittests/Core/ScalarTest.cpp Thu Apr 19 11:31:57 2018 @@ -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, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits