From 9e79b3258d82d61a926240b17217af8a5cf2e017 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sat, 8 Apr 2006 18:59:52 +0000 Subject: [PATCH] Make const-correct to avoid warning. committer: mfx 1144522792 +0000 --- src/p_lx_exc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }