Mercurial > emacs
changeset 31088:24c78d0ab986
(PTR_TO_OFFSET): Cast ptr to unsigned char *.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Tue, 22 Aug 2000 21:51:15 +0000 |
parents | 1529065f6eb6 |
children | 6d99fe7bc313 |
files | nt/preprep.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nt/preprep.c Tue Aug 22 21:50:38 2000 +0000 +++ b/nt/preprep.c Tue Aug 22 21:51:15 2000 +0000 @@ -291,7 +291,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))