Skip to content
Snippets Groups Projects
Commit 6394f0fd authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Reorder operation to avoid UBsan warning

The original order of operations lead to all variables upgraded to
unsigned int during computation, and enc->cnt being negative then
would cause UBsan warning.

Change-Id: I658b6f4c903472b82e178033eac2463045c42233
parent a517d9f4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment