Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Try to fix build of port where "char" is unsigned.
details: https://anonhg.NetBSD.org/src/rev/5c3fcdaa6c68
branches: trunk
changeset: 767133:5c3fcdaa6c68
user: tron <tron%NetBSD.org@localhost>
date: Sat Jul 09 16:04:34 2011 +0000
description:
Try to fix build of port where "char" is unsigned.
diffstat:
lib/libedit/read.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 86892cd613a5 -r 5c3fcdaa6c68 lib/libedit/read.c
--- a/lib/libedit/read.c Sat Jul 09 16:03:00 2011 +0000
+++ b/lib/libedit/read.c Sat Jul 09 16:04:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.59 2011/07/08 15:54:56 christos Exp $ */
+/* $NetBSD: read.c,v 1.60 2011/07/09 16:04:34 tron Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.59 2011/07/08 15:54:56 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.60 2011/07/09 16:04:34 tron Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -352,7 +352,7 @@
}
goto again;
}
- } else if (*cbuf >= 0 || /* ASCII */
+ } else if ((signed char)cbuf[0] >= 0 || /* ASCII */
/* we don't support other multibyte charsets */
++cbp != 1 ||
/* Try non-ASCII characters in a 8-bit character set */
Home |
Main Index |
Thread Index |
Old Index