ICU-214 Fix for Win64. Do the math in size_t when part of the expression is in size_t and the other side is (void *)

X-SVN-Rev: 8288
This commit is contained in:
George Rhoten 2002-03-29 01:51:09 +00:00
parent 363d8dbc60
commit 153b72da68

View file

@ -51,7 +51,7 @@ typedef union {
* Get the amount of bytes that a pointer is off by from
* the previous aligned pointer
*/
#define U_ALIGNMENT_OFFSET(ptr) (((long)ptr) & (sizeof(UAlignedMemory) - 1))
#define U_ALIGNMENT_OFFSET(ptr) (((size_t)ptr) & (sizeof(UAlignedMemory) - 1))
/**
* Get the amount of bytes to add to a pointer