Author: br Date: Tue Jul 3 14:32:15 2018 New Revision: 335889 URL: https://svnweb.freebsd.org/changeset/base/335889
Log: 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 Modified: head/usr.bin/top/utils.c Modified: head/usr.bin/top/utils.c ============================================================================== --- head/usr.bin/top/utils.c Tue Jul 3 13:53:54 2018 (r335888) +++ head/usr.bin/top/utils.c Tue Jul 3 14:32:15 2018 (r335889) @@ -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; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"