Clean up the Windows x64 changes.
commit2d7d1608381a4c14822e50ae42e2a6d748842cc3
authorEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 11:37:37 +0000 (1 13:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 11:37:37 +0000 (1 13:37 +0200)
treeb22ef7adf83c2aaf47cd7c6439a6e735f6b58551
parent7692b36bc6557b20f966801e3db346d8a166d32e
Clean up the Windows x64 changes.

 nt/preprep.c (RVA_TO_PTR): Use 'unsigned char *' instead of
 'void *', for pointer arithmetics.
 (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET): Enclose all
 macro arguments in parentheses.

 src/unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
 (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses.
 (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *',
 as the previous version used 'void *'.
 src/ralloc.c (ROUNDUP): Fix last change.
 (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type
 'size_t'.

Fixes: debbugs:12544
nt/ChangeLog
nt/preprep.c
src/ChangeLog
src/ralloc.c
src/unexw32.c