summaryrefslogtreecommitdiff
path: root/misc.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-26 08:35:40 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-26 08:35:40 +0000
commitaf9ded005a3ee211469f88ece35cccf998603e11 (patch)
tree8f6ef43ba9d4af4a691ba90597c035f130bbd175 /misc.cpp
parent244bc80865242575f546a8dd0f50138226015751 (diff)
downloadcryptopp-af9ded005a3ee211469f88ece35cccf998603e11.tar.gz
remove gcc warnings
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@115 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.cpp')
-rw-r--r--misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.cpp b/misc.cpp
index 9430e44..27a9a35 100644
--- a/misc.cpp
+++ b/misc.cpp
@@ -11,7 +11,7 @@ NAMESPACE_BEGIN(CryptoPP)
void xorbuf(byte *buf, const byte *mask, unsigned int count)
{
- if (((unsigned int)buf | (unsigned int)mask | count) % WORD_SIZE == 0)
+ if (((size_t)buf | (size_t)mask | count) % WORD_SIZE == 0)
XorWords((word *)buf, (const word *)mask, count/WORD_SIZE);
else
{
@@ -22,7 +22,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 (((size_t)output | (size_t)input | (size_t)mask | count) % WORD_SIZE == 0)
XorWords((word *)output, (const word *)input, (const word *)mask, count/WORD_SIZE);
else
{