Subject: | Use DWORD_PTR for pointer arithmetics |
MakePtr is currently defined in ANSI.xs using "unsigned __int64" for
pointer arithmetic.
#define MakePtr( cast, ptr, addValue ) (cast)( (unsigned
__int64)(ptr)+(DWORD)(addValue))
I think it would be better to use the better matching type "DWORD_PTR"
instead.
"Unsigned long type for pointer precision. Use when casting a pointer to
a long type to perform pointer arithmetic."
#define MakePtr( cast, ptr, addValue ) (cast)(
(DWORD_PTR)(ptr)+(DWORD)(addValue))