From: Andrew Innes Date: Tue, 22 Aug 2000 21:51:15 +0000 (+0000) Subject: (PTR_TO_OFFSET): Cast ptr to unsigned char *. X-Git-Tag: emacs-pretest-21.0.90~2052 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b1709cc9146d42cf694d87e4f97d7b9e09ad0ed;p=emacs.git (PTR_TO_OFFSET): Cast ptr to unsigned char *. --- diff --git a/nt/preprep.c b/nt/preprep.c index 4087c512c19..0c10ab98b82 100644 --- a/nt/preprep.c +++ b/nt/preprep.c @@ -291,7 +291,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))