From 0d200bc46197ed0aa5eb686fa1c7b5f74e53866d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 23 Jun 2005 04:51:12 +0000 Subject: [PATCH] More 64 bit compile fixes. --- stepmania/src/crypto51/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/crypto51/misc.cpp b/stepmania/src/crypto51/misc.cpp index c193b3f3ed..b5dfb15714 100644 --- a/stepmania/src/crypto51/misc.cpp +++ b/stepmania/src/crypto51/misc.cpp @@ -16,7 +16,7 @@ template<> void ByteReverse(word64 *, const word64 *, unsigned int); void xorbuf(byte *buf, const byte *mask, unsigned int count) { - if (((unsigned int)buf | (unsigned int)mask | count) % WORD_SIZE == 0) + if (((uintptr_t)buf | (uintptr_t)mask | count) % WORD_SIZE == 0) XorWords((word *)buf, (const word *)mask, count/WORD_SIZE); else { @@ -27,7 +27,7 @@ void xorbuf(byte *buf, const byte *mask, unsigned int count) void xorbuf(byte *output, const byte *input, const byte *mask, unsigned int count) { - if (((unsigned int)output | (unsigned int)input | (unsigned int)mask | count) % WORD_SIZE == 0) + if (((uintptr_t)output | (uintptr_t)input | (uintptr_t)mask | count) % WORD_SIZE == 0) XorWords((word *)output, (const word *)input, (const word *)mask, count/WORD_SIZE); else {