summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-02 21:31:06 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-02 21:31:06 (GMT)
commit78d27ce7a6ebca7252111c4a6b5ac574b253ac58 (patch)
tree812f887e0e4be103d94f810f5cd3bfe411eea09e /Source/cmELF.cxx
parentf42c3de1d73025613e47584f2749ebe1ca7ed396 (diff)
downloadCMake-78d27ce7a6ebca7252111c4a6b5ac574b253ac58.zip
CMake-78d27ce7a6ebca7252111c4a6b5ac574b253ac58.tar.gz
CMake-78d27ce7a6ebca7252111c4a6b5ac574b253ac58.tar.bz2
BUG: Fix bug introduced by workaround to warning.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r--Source/cmELF.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index 7bf83c7..d7d9ef5 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -360,6 +360,7 @@ private:
(eti >= ET_LOPROC && eti <= ET_HIPROC)))
{
cmELFByteSwap(et);
+ eti = static_cast<unsigned int>(et);
if(eti == ET_NONE || eti == ET_REL || eti == ET_EXEC ||
eti == ET_DYN || eti == ET_CORE ||
(eti >= ET_LOOS && eti <= ET_HIOS) ||