summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-06 12:33:05 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-06 12:33:05 (GMT)
commitd4ef3bcf59b9b623fa682d24be8a10f1f8a106e2 (patch)
tree78555f35dca26bfb7688740074987f72f9a534a5 /Source/cmELF.cxx
parent6b14c1d2739e0e35a57a257cd48594d3affa736d (diff)
downloadCMake-d4ef3bcf59b9b623fa682d24be8a10f1f8a106e2.zip
CMake-d4ef3bcf59b9b623fa682d24be8a10f1f8a106e2.tar.gz
CMake-d4ef3bcf59b9b623fa682d24be8a10f1f8a106e2.tar.bz2
Use explicit conversion to avoid warnings in cmELF
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r--Source/cmELF.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index c01e220..763fdd8 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -540,7 +540,7 @@ bool cmELFInternalImpl<Types>::LoadDynamicSection()
// Allocate the dynamic section entries.
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
- int n = sec.sh_size / sec.sh_entsize;
+ int n = static_cast<int>(sec.sh_size / sec.sh_entsize);
this->DynamicSectionEntries.resize(n);
// Read each entry.
@@ -592,7 +592,7 @@ unsigned long cmELFInternalImpl<Types>::GetDynamicEntryPosition(int j)
return 0;
}
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
- return sec.sh_offset + sec.sh_entsize*j;
+ return static_cast<unsigned long>(sec.sh_offset + sec.sh_entsize*j);
}
//----------------------------------------------------------------------------