projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07b0e35
)
Suppress a "-Wliteral-conversion" compiler warning.
author
Haojian Wu
<hokein@google.com>
Wed, 14 Nov 2018 09:53:45 +0000
(09:53 +0000)
committer
Haojian Wu
<hokein@google.com>
Wed, 14 Nov 2018 09:53:45 +0000
(09:53 +0000)
error: implicit conversion from 'double' to 'uint64_t' (aka 'unsigned long') changes value from -0 to 0 [-Werror,-Wliteral-conversion]
llvm-svn: 346841
lldb/source/Plugins/Language/ObjC/Cocoa.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
index
72fd7c5
..
16f77e8
100644
(file)
--- a/
lldb/source/Plugins/Language/ObjC/Cocoa.cpp
+++ b/
lldb/source/Plugins/Language/ObjC/Cocoa.cpp
@@
-781,7
+781,7
@@
static uint64_t decodeTaggedTimeInterval(uint64_t encodedTimeInterval) {
if (encodedTimeInterval == 0)
return 0.0;
if (encodedTimeInterval == std::numeric_limits<uint64_t>::max())
- return -0.0;
+ return
(uint64_t)
-0.0;
TaggedDoubleBits encodedBits = { .i = encodedTimeInterval };
DoubleBits decodedBits;