Module Name:    src
Committed By:   tron
Date:           Sat Jul  9 16:04:34 UTC 2011

Modified Files:
        src/lib/libedit: read.c

Log Message:
Try to fix build of port where "char" is unsigned.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libedit/read.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/read.c
diff -u src/lib/libedit/read.c:1.59 src/lib/libedit/read.c:1.60
--- src/lib/libedit/read.c:1.59	Fri Jul  8 15:54:56 2011
+++ src/lib/libedit/read.c	Sat Jul  9 16:04:34 2011
@@ -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 */

Reply via email to