Skip to content
Commit 6d9e7f66 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

ContextHubService: Maintain hub result meaning

We're squeezing a 4-byte signed value to 1-byte.  The naive
(implicit) cast we were using could flip this value from positive
to negative, or vice versa, and completely change the meaning
of the result.

API freeze prevents us from fixing this properly at the moment,
but we use a less naive approach to truncate this value, maintaining
its meaning and logging when we've changed the value.

Bug:30829863
Change-Id: I0e80af9b192066fdf36fee565a4587eb75a5ea7b
parent 4ecc9d2d
Loading
Loading
Loading
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