diff --git a/src/packer.cpp b/src/packer.cpp index 66558416..eff5fe9f 100644 --- a/src/packer.cpp +++ b/src/packer.cpp @@ -556,7 +556,6 @@ unsigned Packer::getRandomId() const void Packer::initPackHeader() { memset(&ph, 0, sizeof(ph)); - ph.magic = UPX_MAGIC_LE32; // "UPX!" ph.version = getVersion(); ph.format = getFormat(); ph.method = -1; diff --git a/src/packer.h b/src/packer.h index d8b94e58..2a406b8f 100644 --- a/src/packer.h +++ b/src/packer.h @@ -61,7 +61,7 @@ public: public: // fields stored in compressed file - unsigned magic; // UPX_MAGIC_LE32 + enum { magic = UPX_MAGIC_LE32 }; int version; int format; // executable format int method; // compresison method