Commit 1601c289 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove unnecessary casts

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -1604,7 +1604,7 @@ size_t actual_x(const char *str, size_t xplus) ...@@ -1604,7 +1604,7 @@ size_t actual_x(const char *str, size_t xplus)
for (; length < xplus && *str != '\0'; i++, str++) { for (; length < xplus && *str != '\0'; i++, str++) {
if (*str == '\t') if (*str == '\t')
length += tabsize - (length % tabsize); length += tabsize - (length % tabsize);
else if (is_cntrl_char((int)*str)) else if (is_cntrl_char(*str))
length += 2; length += 2;
else else
length++; length++;
...@@ -1628,7 +1628,7 @@ size_t strnlenpt(const char *buf, size_t size) ...@@ -1628,7 +1628,7 @@ size_t strnlenpt(const char *buf, size_t size)
for (; *buf != '\0' && size != 0; size--, buf++) { for (; *buf != '\0' && size != 0; size--, buf++) {
if (*buf == '\t') if (*buf == '\t')
length += tabsize - (length % tabsize); length += tabsize - (length % tabsize);
else if (is_cntrl_char((int)*buf)) else if (is_cntrl_char(*buf))
length += 2; length += 2;
else else
length++; length++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment