unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b258b62e5b6cf2e64e70e8e7ba955e1e2354b168 1514 bytes (raw)
name: gnu/packages/patches/kobodeluxe_graphics_window-signed-char.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
29
30
31
32
33
34
35
36
37
38
 
# This was created in responce to Debian bug #163979
# Thing is, if you want to compant "-1" with a char value,
# you better make that char signed
--- kobodeluxe-0.5.1.orig/graphics/window.cpp
+++ kobodeluxe-0.5.1/graphics/window.cpp
@@ -331,7 +331,7 @@
 }
 
 
-void window_t::center_token(int _x, int _y, const char *txt, char token)
+void window_t::center_token(int _x, int _y, const char *txt, signed char token)
 {
 	center_token_fxp(PIXEL2CS(_x), PIXEL2CS(_y), txt, token);
 }
@@ -374,7 +374,7 @@
 }
 
 
-void window_t::center_token_fxp(int _x, int _y, const char *txt, char token)
+void window_t::center_token_fxp(int _x, int _y, const char *txt, signed char token)
 {
 	_x = CS2PIXEL((_x * xs + 128) >> 8);
 	_y = CS2PIXEL((_y * ys + 128) >> 8);
--- kobodeluxe-0.5.1.orig/graphics/window.h
+++ kobodeluxe-0.5.1/graphics/window.h
@@ -265,10 +265,10 @@
 	void font(int fnt);
 	void string(int _x, int _y, const char *txt);
 	void center(int _y, const char *txt);
-	void center_token(int _x, int _y, const char *txt, char token = 0);
+	void center_token(int _x, int _y, const char *txt, signed char token = 0);
 	void string_fxp(int _x, int _y, const char *txt);
 	void center_fxp(int _y, const char *txt);
-	void center_token_fxp(int _x, int _y, const char *txt, char token = 0);
+	void center_token_fxp(int _x, int _y, const char *txt, signed char token = 0);
 	int textwidth(const char *txt, int min = 0, int max = 255);
 	int textwidth_fxp(const char *txt, int min = 0, int max = 255);
 	int fontheight();

debug log:

solving b258b62 ...
found b258b62 in https://yhetil.org/guix-devel/87h98bag8p.fsf@dustycloud.org/ ||
	https://yhetil.org/guix-devel/CANR+FbvbJG6csn0Lbs1wnNwtPydPty6i5yvW1g0iKsViTC612g@mail.gmail.com/

applying [1/1] https://yhetil.org/guix-devel/87h98bag8p.fsf@dustycloud.org/
diff --git a/gnu/packages/patches/kobodeluxe_graphics_window-signed-char.patch b/gnu/packages/patches/kobodeluxe_graphics_window-signed-char.patch
new file mode 100644
index 0000000..b258b62

1:14: trailing whitespace.
 
1:15: trailing whitespace.
 
1:19: space before tab in indent.
 	center_token_fxp(PIXEL2CS(_x), PIXEL2CS(_y), txt, token);
1:23: trailing whitespace.
 
1:24: trailing whitespace.
 
Checking patch gnu/packages/patches/kobodeluxe_graphics_window-signed-char.patch...
Applied patch gnu/packages/patches/kobodeluxe_graphics_window-signed-char.patch cleanly.
warning: squelched 10 whitespace errors
warning: 15 lines add whitespace errors.

skipping https://yhetil.org/guix-devel/CANR+FbvbJG6csn0Lbs1wnNwtPydPty6i5yvW1g0iKsViTC612g@mail.gmail.com/ for b258b62
index at:
100644 b258b62e5b6cf2e64e70e8e7ba955e1e2354b168	gnu/packages/patches/kobodeluxe_graphics_window-signed-char.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).