Commit a89a169c authored by Mark Haines's avatar Mark Haines
Browse files

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

parent 5926a8fd
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment