nvi-09-casting.patch (849B)
1 #! /bin/sh /usr/share/dpatch/dpatch-run 2 ## 09casting.dpatch by <hesso@pool.math.tu-berlin.de> 3 ## 4 ## DP: No description. 5 6 @DPATCH@ 7 diff -Naur nvi-1.81.6.orig/vi/v_ch.c nvi-1.81.6/vi/v_ch.c 8 --- nvi-1.81.6.orig/vi/v_ch.c 2007-11-18 17:41:42.000000000 +0100 9 +++ nvi-1.81.6/vi/v_ch.c 2008-05-01 18:14:03.000000000 +0200 10 @@ -165,7 +165,7 @@ 11 endp = (startp = p) + len; 12 p += vp->m_start.cno; 13 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { 14 - while (++p < endp && *p != key); 15 + while (++p < endp && *p != (char) key); 16 if (p == endp) { 17 notfound(sp, key); 18 return (1); 19 @@ -247,7 +247,7 @@ 20 endp = p - 1; 21 p += vp->m_start.cno; 22 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { 23 - while (--p > endp && *p != key); 24 + while (--p > endp && *p != (char) key); 25 if (p == endp) { 26 notfound(sp, key); 27 return (1);