summary refs log tree commit diff
path: root/Src/Zle/deltochar.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/deltochar.c')
-rw-r--r--Src/Zle/deltochar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Zle/deltochar.c b/Src/Zle/deltochar.c
index d25f99680..66b4aeccd 100644
--- a/Src/Zle/deltochar.c
+++ b/Src/Zle/deltochar.c
@@ -43,7 +43,7 @@ deltochar(UNUSED(char **args))
 
     if (n > 0) {
 	while (n-- && dest != zlell) {
-	    while (dest != zlell && zleline[dest] != c)
+	    while (dest != zlell && (ZLE_INT_T)zleline[dest] != c)
 		dest++;
 	    if (dest != zlell) {
 		if (!zap || n > 0)
@@ -59,9 +59,9 @@ deltochar(UNUSED(char **args))
 	if (dest)
 	    dest--;
 	while (n++ && dest != 0) {
-	    while (dest != 0 && zleline[dest] != c)
+	    while (dest != 0 && (ZLE_INT_T)zleline[dest] != c)
 		dest--;
-	    if (zleline[dest] == c) {
+	    if ((ZLE_INT_T)zleline[dest] == c) {
 		if (!n) {
 		    backkill(zlecs - dest - zap, 1);
 		    ok++;