1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Make const-correct to avoid warning.

committer: mfx <mfx> 1144522792 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2006-04-08 18:59:52 +00:00
parent 243873cd2d
commit 9e79b3258d

View File

@ -262,7 +262,7 @@ PackLinuxI386::buildLinuxLoader(
cprElfHdr1 const *const hf = (cprElfHdr1 const *)fold;
fold_hdrlen = sizeof(hf->ehdr) + hf->ehdr.e_phentsize * hf->ehdr.e_phnum +
sizeof(l_info);
if (0==*(int *)(fold_hdrlen + fold)) {
if (0==*(const int *)(fold_hdrlen + fold)) {
// inconsistent SIZEOF_HEADERS in *.lds (ld, binutils)
fold_hdrlen = umax(0x80, fold_hdrlen);
}