summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2000-08-22 21:45:29 +0000
committerAndrew Innes <andrewi@gnu.org>2000-08-22 21:45:29 +0000
commita56e5d174c2cf6521c5693176abe4ade9283e288 (patch)
tree90f3869c17773931ef117061a58b98a5834def84 /nt
parent5205d900d6011278d4dedaee60e155580614b2ed (diff)
downloademacs-a56e5d174c2cf6521c5693176abe4ade9283e288.tar.gz
(PTR_TO_OFFSET): Cast ptr to unsigned char*.
Diffstat (limited to 'nt')
-rw-r--r--nt/addsection.c2
1 files changed, 1 insertions, 1 deletions
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))