Fix hwasan/ubsan issue

Fix left shift of values >127 by 24. The intermediary "unsigned char"
got promoted "int", which was then left-shifted by 24, thus extending
into the sign bit, before being assigned back to an unsigned int.
Explicitly cast the intermediary to an unsigned int to avoid the
problem.

Bug: 134892789
Test: assembly code is identical
Change-Id: Ifde58385cbededb4cc8672163d2198cd91bf3c97
1 file changed