svn commit: r335889 - head/usr.bin/top

Ruslan Bukin br at FreeBSD.org
Tue Jul 3 14:32:16 UTC 2018


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;
 


More information about the svn-src-head mailing list