Module Name:    src
Committed By:   christos
Date:           Wed Nov 16 01:45:10 UTC 2011

Modified Files:
        src/lib/libedit: chartype.h

Log Message:
easier with an int for now.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libedit/chartype.h

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/chartype.h
diff -u src/lib/libedit/chartype.h:1.9 src/lib/libedit/chartype.h:1.10
--- src/lib/libedit/chartype.h:1.9	Tue Nov 15 18:54:14 2011
+++ src/lib/libedit/chartype.h	Tue Nov 15 20:45:10 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: chartype.h,v 1.9 2011/11/15 23:54:14 christos Exp $	*/
+/*	$NetBSD: chartype.h,v 1.10 2011/11/16 01:45:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -105,11 +105,11 @@
 
 #define Strtol(p,e,b)   wcstol(p,e,b)
 
-static inline size_t
+static inline int
 Width(wchar_t c)
 {
 	int w = wcwidth(c);
-	return (w < 0) ? 0 : (size_t)w;
+	return w < 0 ? 0 : w;
 }
 
 #else /* NARROW */

Reply via email to