Skip Menu |

This queue is for tickets about the Win32-Console-ANSI CPAN distribution.

Report information
The Basics
Id: 46139
Status: resolved
Priority: 0/
Queue: Win32-Console-ANSI

People
Owner: jl_morel [...] bribes.org
Requestors: ron [...] rblasch.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.04
Fixed in: 1.05



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))