From 2b62d093d50fa19bfba31c205f134828b606a659 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 23 Jun 2005 01:05:45 +0000 Subject: [PATCH] these were unsigned; keep them that way --- stepmania/src/crypto51/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/crypto51/misc.h b/stepmania/src/crypto51/misc.h index bd41d62867..4bb68cebb4 100644 --- a/stepmania/src/crypto51/misc.h +++ b/stepmania/src/crypto51/misc.h @@ -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