commit 1601c28976da4822598bd62a58be37eee6571085
parent fe65657f6f0464924f2483d7692ec9d95524e930
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 21 Oct 2004 22:06:40 +0000
remove unnecessary casts
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1604,7 +1604,7 @@ size_t actual_x(const char *str, size_t xplus)
for (; length < xplus && *str != '\0'; i++, str++) {
if (*str == '\t')
length += tabsize - (length % tabsize);
- else if (is_cntrl_char((int)*str))
+ else if (is_cntrl_char(*str))
length += 2;
else
length++;
@@ -1628,7 +1628,7 @@ size_t strnlenpt(const char *buf, size_t size)
for (; *buf != '\0' && size != 0; size--, buf++) {
if (*buf == '\t')
length += tabsize - (length % tabsize);
- else if (is_cntrl_char((int)*buf))
+ else if (is_cntrl_char(*buf))
length += 2;
else
length++;