Cleared "signed/unsigned" warning under GCC 4.8 (this may have been a GCC 4.8/Debian-i686 issue because both types were unsigned)

pull/35/head
Jeffrey Walton 2015-07-26 01:17:36 -04:00
parent 4d5be2d690
commit c109e8dd28
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ void TTMAC_Base::TruncatedFinal(byte *hash, size_t size)
word32 t2 = m_digest[2]; word32 t2 = m_digest[2];
word32 t3 = m_digest[3]; 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) switch (size)
{ {