``if`` is not the same as ``for``

logging_enabled
Mark Haines 2016-09-13 17:00:40 +01:00
parent 5926a8fd29
commit a89a169c89
1 changed files with 1 additions and 1 deletions

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;
}