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:23:52 -04:00
parent c109e8dd28
commit 6f4e331cf0
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ void SHARK::Enc::InitForKeySetup()
m_rounds = DEFAULT_ROUNDS; m_rounds = DEFAULT_ROUNDS;
m_roundKeys.New(DEFAULT_ROUNDS+1); m_roundKeys.New(DEFAULT_ROUNDS+1);
for (unsigned int i=0; i<DEFAULT_ROUNDS; i++) unsigned int i;
for (i=0; i<static_cast<unsigned int>(DEFAULT_ROUNDS); i++)
m_roundKeys[i] = cbox[0][i]; m_roundKeys[i] = cbox[0][i];
m_roundKeys[DEFAULT_ROUNDS] = SHARKTransform(cbox[0][DEFAULT_ROUNDS]); m_roundKeys[DEFAULT_ROUNDS] = SHARKTransform(cbox[0][DEFAULT_ROUNDS]);