From: Andrew Innes Date: Tue, 22 Aug 2000 21:45:29 +0000 (+0000) Subject: (PTR_TO_OFFSET): Cast ptr to unsigned char*. X-Git-Tag: emacs-pretest-21.0.90~2055 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a56e5d174c2cf6521c5693176abe4ade9283e288;p=emacs.git (PTR_TO_OFFSET): Cast ptr to unsigned char*. --- diff --git a/nt/addsection.c b/nt/addsection.c index ab69ecc2e27..a07b39de58a 100644 --- a/nt/addsection.c +++ b/nt/addsection.c @@ -256,7 +256,7 @@ relocate_offset (DWORD offset, #define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL)) #define PTR_TO_OFFSET(ptr, pfile_data) \ - ((char *)(ptr) - (pfile_data)->file_base) + ((unsigned char *)(ptr) - (pfile_data)->file_base) #define OFFSET_TO_PTR(offset, pfile_data) \ ((pfile_data)->file_base + (DWORD)(offset))