Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit easier with an int for now.
details: https://anonhg.NetBSD.org/src/rev/92bb833e9236
branches: trunk
changeset: 771241:92bb833e9236
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 16 01:45:10 2011 +0000
description:
easier with an int for now.
diffstat:
lib/libedit/chartype.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 6476b3cfc9a3 -r 92bb833e9236 lib/libedit/chartype.h
--- a/lib/libedit/chartype.h Tue Nov 15 23:54:14 2011 +0000
+++ b/lib/libedit/chartype.h Wed Nov 16 01:45:10 2011 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index