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 {