diff --git a/src/p_lx_exc.cpp b/src/p_lx_exc.cpp index 2479dd81..8c8d3808 100644 --- a/src/p_lx_exc.cpp +++ b/src/p_lx_exc.cpp @@ -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); }