Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
fae8daca
Commit
fae8daca
authored
May 25, 2016
by
Richard van der Hoff
Browse files
Add a comment explaining Mark's latest fix
parent
19a7fb5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/megolm.c
View file @
fae8daca
...
...
@@ -116,6 +116,11 @@ void megolm_advance_to(Megolm *megolm, uint32_t advance_to) {
((
advance_to
>>
shift
)
-
(
megolm
->
counter
>>
shift
))
&
0xff
;
if
(
steps
==
0
)
{
/* deal with the edge case where megolm->counter is slightly larger
* than advance_to. This should only happen for R(0), and implies
* that advance_to has wrapped around and we need to advance R(0)
* 256 times.
*/
if
(
advance_to
<
megolm
->
counter
)
{
steps
=
0x100
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment