diff --git a/src/winio.c b/src/winio.c
index 50ba44b596a3a8ed6bd78f5ea9f30d7667494fd7..6ca9b84d61e6a96ed0699e30d2167738655a0f72 100644
--- 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++;