From 872b7bf4a35bf9607c1d061003d0aaea9073e602 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 16 Nov 2011 01:45:10 +0000 Subject: [PATCH] easier with an int for now. --- lib/libedit/chartype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libedit/chartype.h b/lib/libedit/chartype.h index aef4cd662327..78407f6c4a31 100644 --- a/lib/libedit/chartype.h +++ b/lib/libedit/chartype.h @@ -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 */