[Cmake-commits] [cmake-commits] king committed cmELF.cxx 1.14 1.15
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 6 08:33:11 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv2170/Source
Modified Files:
cmELF.cxx
Log Message:
Use explicit conversion to avoid warnings in cmELF
Index: cmELF.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmELF.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -C 2 -d -r1.14 -r1.15
*** cmELF.cxx 28 Sep 2009 15:42:23 -0000 1.14
--- cmELF.cxx 6 Oct 2009 12:33:05 -0000 1.15
***************
*** 541,545 ****
// Allocate the dynamic section entries.
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
! int n = sec.sh_size / sec.sh_entsize;
this->DynamicSectionEntries.resize(n);
--- 541,545 ----
// Allocate the dynamic section entries.
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
! int n = static_cast<int>(sec.sh_size / sec.sh_entsize);
this->DynamicSectionEntries.resize(n);
***************
*** 593,597 ****
}
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
! return sec.sh_offset + sec.sh_entsize*j;
}
--- 593,597 ----
}
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
! return static_cast<unsigned long>(sec.sh_offset + sec.sh_entsize*j);
}
More information about the Cmake-commits
mailing list