these were unsigned; keep them that way

This commit is contained in:
Glenn Maynard
2005-06-23 01:05:45 +00:00
parent 8ccc9cb6df
commit 2b62d093d5
+1 -1
View File
@@ -142,7 +142,7 @@ inline unsigned int GetAlignment(T *dummy=NULL) // VC60 workaround
inline bool IsAlignedOn(const void *p, unsigned int alignment)
{
return IsPowerOf2(alignment) ? ModPowerOf2((intptr_t)p, alignment) == 0 : (intptr_t)p % alignment == 0;
return IsPowerOf2(alignment) ? ModPowerOf2((uintptr_t)p, alignment) == 0 : (uintptr_t)p % alignment == 0;
}
template <class T>