Use a more portable cast.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-06-14 11:23:48 +00:00
parent 4b2adaae5f
commit aa08883069

View File

@ -53,7 +53,7 @@ _Align(int32 offset)
static inline void*
_Align(void* address, int32 offset = 0)
{
return (void*)(((uint32)address + offset + 3) & ~0x3);
return (void*)(((addr_t)address + offset + 3) & ~0x3);
}