Fix a warning when building with gcc.

It was

/Writer.cpp:119:45: warning: enumeral and non-enumeral type in conditional expression

llvm-svn: 247330
This commit is contained in:
Rafael Espindola 2015-09-10 20:02:22 +00:00
parent 886c7d42df
commit 65db630fe7
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public:
typedef typename OutputSectionBase<Is64Bits>::uintX_t uintX_t;
StringTableSection(bool Dynamic)
: OutputSectionBase<Is64Bits>(Dynamic ? ".dynstr" : ".strtab", SHT_STRTAB,
Dynamic ? SHF_ALLOC : 0) {
Dynamic ? (uintX_t)SHF_ALLOC : 0) {
this->Header.sh_addralign = 1;
}