projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8dacf4
)
WinCOFFObjectWriter.cpp: Appease a warning in checking std::time_t. [-Wsign-compare]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 4 Sep 2015 05:19:37 +0000
(
05:19
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 4 Sep 2015 05:19:37 +0000
(
05:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246839
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/WinCOFFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/WinCOFFObjectWriter.cpp
b/lib/MC/WinCOFFObjectWriter.cpp
index c9dafb569083e64f3a908060907cebe80070ea3b..81facc01eed4160fe731693d43b979dbd20c56ab 100644
(file)
--- a/
lib/MC/WinCOFFObjectWriter.cpp
+++ b/
lib/MC/WinCOFFObjectWriter.cpp
@@
-1016,7
+1016,7
@@
void WinCOFFObjectWriter::writeObject(MCAssembler &Asm,
// MS LINK expects to be able to use this timestamp to implement their
// /INCREMENTAL feature.
std::time_t Now = time(nullptr);
- if (Now < 0 || Now > UINT32_MAX)
+ if (Now < 0 ||
(unsigned long)
Now > UINT32_MAX)
Now = UINT32_MAX;
Header.TimeDateStamp = Now;