Fix build: utf8strvisx() does signed data comparisons, but 'char' type

is unsigned in riscv GCC, so use guaranted signed char type.

Sponsored by:	DARPA, AFRL
This commit is contained in:
br 2018-07-03 14:32:15 +00:00
parent 99b08f2273
commit c2e107e670

View File

@ -344,7 +344,7 @@ static const char *vis_encodes[] = {
int
utf8strvisx(char *dst, const char *src, size_t src_len)
{
const char *src_p;
const signed char *src_p;
char *dst_p;
int i, j, olen, len;