From d4ef3bcf59b9b623fa682d24be8a10f1f8a106e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 6 Oct 2009 08:33:05 -0400 Subject: [PATCH] Use explicit conversion to avoid warnings in cmELF --- Source/cmELF.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index c01e22046..763fdd849 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -540,7 +540,7 @@ bool cmELFInternalImpl::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(sec.sh_size / sec.sh_entsize); this->DynamicSectionEntries.resize(n); // Read each entry. @@ -592,7 +592,7 @@ unsigned long cmELFInternalImpl::GetDynamicEntryPosition(int j) return 0; } ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex]; - return sec.sh_offset + sec.sh_entsize*j; + return static_cast(sec.sh_offset + sec.sh_entsize*j); } //----------------------------------------------------------------------------