diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2018-07-03 14:32:15 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2018-07-03 14:32:15 +0000 |
commit | c6dc704e84625f06e72eeb141b1af1f4d0834ee6 (patch) | |
tree | 8345ae5e14d1f0ca2af965a85b2753139d57b668 /usr.bin/top | |
parent | ab40f58ccfe6c07ebefddc72f4661a52fe746353 (diff) | |
download | src-c6dc704e84625f06e72eeb141b1af1f4d0834ee6.tar.gz src-c6dc704e84625f06e72eeb141b1af1f4d0834ee6.zip |
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
Notes
Notes:
svn path=/head/; revision=335889
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c index 9149521a1e0b..d65587777b93 100644 --- a/usr.bin/top/utils.c +++ b/usr.bin/top/utils.c @@ -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; |