unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 2d39a1f454d980bcfa41bf34bcde6e579cd0e5b7 870 bytes (raw)
name: gnu/packages/patches/nvi-casting.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
This patch originates from the Debian project, see https://www.debian.org/

09casting.dpatch by  <hesso@pool.math.tu-berlin.de>


Fix a casting issue.

diff -Naur nvi-1.81.6.orig/vi/v_ch.c nvi-1.81.6/vi/v_ch.c
--- nvi-1.81.6.orig/vi/v_ch.c	2007-11-18 17:41:42.000000000 +0100
+++ nvi-1.81.6/vi/v_ch.c	2008-05-01 18:14:03.000000000 +0200
@@ -165,7 +165,7 @@
 	endp = (startp = p) + len;
 	p += vp->m_start.cno;
 	for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) {
-		while (++p < endp && *p != key);
+		while (++p < endp && *p != (char) key);
 		if (p == endp) {
 			notfound(sp, key);
 			return (1);
@@ -247,7 +247,7 @@
 	endp = p - 1;
 	p += vp->m_start.cno;
 	for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) {
-		while (--p > endp && *p != key);
+		while (--p > endp && *p != (char) key);
 		if (p == endp) {
 			notfound(sp, key);
 			return (1);

debug log:

solving 2d39a1f ...
found 2d39a1f in https://yhetil.org/guix-devel/54BE9C68.9070103@gmail.com/

applying [1/1] https://yhetil.org/guix-devel/54BE9C68.9070103@gmail.com/
diff --git a/gnu/packages/patches/nvi-casting.patch b/gnu/packages/patches/nvi-casting.patch
new file mode 100644
index 0000000..2d39a1f

1:18: space before tab in indent.
 	endp = (startp = p) + len;
1:19: space before tab in indent.
 	p += vp->m_start.cno;
1:20: space before tab in indent.
 	for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) {
1:23: space before tab in indent.
 		if (p == endp) {
1:24: space before tab in indent.
 			notfound(sp, key);
Checking patch gnu/packages/patches/nvi-casting.patch...
Applied patch gnu/packages/patches/nvi-casting.patch cleanly.
warning: squelched 7 whitespace errors
warning: 12 lines add whitespace errors.

index at:
100644 2d39a1f454d980bcfa41bf34bcde6e579cd0e5b7	gnu/packages/patches/nvi-casting.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).