Skip to content

Avoid overflow when calculating reverse indices#467

Open
michaelkirk-signal wants to merge 2 commits intoyapstudios:masterfrom
signalapp:mkirk/invalidFinalIndices
Open

Avoid overflow when calculating reverse indices#467
michaelkirk-signal wants to merge 2 commits intoyapstudios:masterfrom
signalapp:mkirk/invalidFinalIndices

Conversation

@michaelkirk-signal
Copy link

I don't know of any particularly bad consequences to the old way, but the proposed way avoids an overflow, which was triggering the analyzer.

(also it avoids a division and the asserts might prove helpful)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants