[llvm] r264419 - Fix Narrowing conversion warning introduced by r264415
Hemant Kulkarni via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 25 09:37:03 PDT 2016
Author: khemant
Date: Fri Mar 25 11:37:03 2016
New Revision: 264419
URL: http://llvm.org/viewvc/llvm-project?rev=264419&view=rev
Log:
Fix Narrowing conversion warning introduced by r264415
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=264419&r1=264418&r2=264419&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Fri Mar 25 11:37:03 2016
@@ -2767,7 +2767,7 @@ bool GNUStyle<ELFT>::checkPTDynamic(cons
template <class ELFT>
void GNUStyle<ELFT>::printProgramHeaders(const ELFO *Obj) {
- int Bias = (ELFT::Is64Bits) ? 8 : 0;
+ unsigned Bias = (ELFT::Is64Bits) ? 8 : 0;
unsigned Width = (ELFT::Is64Bits) ? 18 : 10;
unsigned SizeWidth = (ELFT::Is64Bits) ? 8 : 7;
std::string Type, Offset, VMA, LMA, FileSz, MemSz, Flag, Align;
More information about the llvm-commits
mailing list