Cleared "signed/unsigned" warning under GCC 4.8 (this may have been a GCC 4.8/Debian-i686 issue because both types were unsigned)
parent
c109e8dd28
commit
6f4e331cf0
|
|
@ -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]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue