summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
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) ||