[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] Fix error: array subscript has type 'char'
On 12.01.2021 19:12, Manuel Bouyer wrote: > From: Manuel Bouyer <bouyer@xxxxxxxxxx> > > Use unsigned char variable, or cast to (unsigned char), for > tolower()/islower() and friends. Fix compiler error > array subscript has type 'char' [-Werror=char-subscripts] Isn't this something that wants changing in your ctype.h instead? the functions (or macros), as per the C standard, ought to accept plain char aiui, and if they use the input as an array subscript, it should be their implementation suitably converting type first. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |