mirror of
https://github.com/upx/upx
synced 2025-10-05 19:20:23 +08:00
Make const-correct to avoid warning.
committer: mfx <mfx> 1144522792 +0000
This commit is contained in:
parent
243873cd2d
commit
9e79b3258d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user