Mercurial > emacs
changeset 31085:ab2cd9e121f1
(PTR_TO_OFFSET): Cast ptr to unsigned char*.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Tue, 22 Aug 2000 21:45:29 +0000 |
parents | 2f7db3489395 |
children | c28a80aba778 |
files | nt/addsection.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nt/addsection.c Tue Aug 22 21:43:12 2000 +0000 +++ b/nt/addsection.c Tue Aug 22 21:45:29 2000 +0000 @@ -256,7 +256,7 @@ #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))