Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c14318fa authored by Mathieu Poirier's avatar Mathieu Poirier
Browse files

cs-etm: avoid casting variable



Because of two's complement reprensentation, casting an int to
and unsigned value doesn't simply get rid of the negative sign.
As such a value of -1 becomes 0xFFFFFFFF, which is clearly not
the desired effect.

This patch deals with cases when @cpu has the value of -1.  In
those cases queue '0' is initially selected.

Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 0951a97e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment