• Yaowu Xu's avatar
    Reorder operation to avoid UBsan warning · 6394f0fd
    Yaowu Xu authored
    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
    6394f0fd
entenc.c 14.7 KB