Skip to content
Commit 819d3ae9 authored by Kumar Gala's avatar Kumar Gala Committed by Johan Hedberg
Browse files

Bluetooth: AT: use explicit unsigned char to avoid array subscript error



If we use newlib the isdigit (and other similar functions) return an
error as char can possibly be viewed as signed:

usr/include/ctype.h:57:54: error: array subscript has type ‘char’ [-Werror=char-subscripts]
 #define __ctype_lookup(__c) ((__ctype_ptr__+sizeof(""[__c]))[(int)(__c)])

Being explicit about the char being unsigned char deals with this.

Change-Id: I348189e1df11a1fcc58e5810b010b602fd2df33e
Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 8f977607
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment