`if
is not the same as
for
`
This commit is contained in:
parent
5926a8fd29
commit
a89a169c89
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue