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:
Ruslan Bukin 2018-07-03 14:32:15 +00:00
parent ab40f58ccf
commit c6dc704e84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335889

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;