`if is not the same as for`

This commit is contained in:
Mark Haines 2016-09-13 17:00:40 +01:00
parent 5926a8fd29
commit a89a169c89

View file

@ -338,7 +338,7 @@ size_t olm_outbound_group_session_key(
uint32_t counter = session->ratchet.counter;
// Encode counter as a big endian 32-bit number.
if (unsigned i = 0; i < 4; i++) {
for (unsigned i = 0; i < 4; i++) {
*ptr++ = 0xFF & (counter >> 24); counter <<= 8;
}