diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2017-08-22 23:22:38 -0500 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2018-02-11 02:50:27 +0200 |
commit | 4b19fe3849e645a817578d1ef5ed185b34c30f00 (patch) | |
tree | 340b30e84d9193563ec6b22a3ffac83bbaff002e | |
parent | a0074967fbfa975ef88a2f925bfad6526733e49d (diff) | |
download | android_system_bt-staging/lineage-15.1.tar.gz android_system_bt-staging/lineage-15.1.tar.bz2 android_system_bt-staging/lineage-15.1.zip |
btm_inq: fix build with BTA_HOST_INTERLEAVE_SEARCHstaging/lineage-15.1
* Need to explicitly cast the int to btm_inq_state enum value
after incrementing.
Change-Id: I984341ad6b09fadb8cb37e360e3ea37b029bafd4
-rw-r--r-- | stack/btm/btm_inq.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stack/btm/btm_inq.cc b/stack/btm/btm_inq.cc index 213683c7a..b543540b4 100644 --- a/stack/btm/btm_inq.cc +++ b/stack/btm/btm_inq.cc @@ -853,7 +853,7 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_PARMS* p_inqparms, BTM_TRACE_API( "BTM:Interleaving: started LE scan, Advancing to next state: %d", p_inq->next_state + 1); - p_inq->next_state += 1; + p_inq->next_state = (btm_inq_state)(p_inq->next_state + 1); } /* reset next_state if status <> BTM_Started */ if (status != BTM_CMD_STARTED) p_inq->next_state = BTM_BR_ONE; @@ -912,7 +912,7 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_PARMS* p_inqparms, BTM_TRACE_API( "BTM:Interleaving: Started BTM inq, Advancing to next state: %d", p_inq->next_state + 1); - p_inq->next_state += 1; + p_inq->next_state = (btm_inq_state)(p_inq->next_state + 1); } } if (status != BTM_CMD_STARTED) { |