summaryrefslogtreecommitdiff
path: root/ttmac.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 01:17:36 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 01:17:36 -0400
commitc109e8dd2890cbe6c5837bc3ed6040680a20a6d4 (patch)
treeebce4ab068c44fe5b6b6aa7b092ff113e24ab255 /ttmac.cpp
parent4d5be2d6901a6c1422510c783ed5808737640ba1 (diff)
downloadcryptopp-git-c109e8dd2890cbe6c5837bc3ed6040680a20a6d4.tar.gz
Cleared "signed/unsigned" warning under GCC 4.8 (this may have been a GCC 4.8/Debian-i686 issue because both types were unsigned)
Diffstat (limited to 'ttmac.cpp')
-rw-r--r--ttmac.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ttmac.cpp b/ttmac.cpp
index d4ff3810..5df33d46 100644
--- a/ttmac.cpp
+++ b/ttmac.cpp
@@ -37,7 +37,9 @@ void TTMAC_Base::TruncatedFinal(byte *hash, size_t size)
word32 t2 = m_digest[2];
word32 t3 = m_digest[3];
- if (size != DIGESTSIZE)
+
+ // Signed/unsigned warning and GCC 4.8 issue under Debian/i386?
+ if (size != static_cast<size_t>(DIGESTSIZE))
{
switch (size)
{