puzzles: unbreak on archs where char is unsigned by default (ppc, arm)
OK landry@
This commit is contained in:
parent
8225fbde1a
commit
01dadf65f7
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2019/07/12 20:46:23 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2019/08/19 18:12:31 cwen Exp $
|
||||
|
||||
COMMENT = collection of puzzles games
|
||||
|
||||
DISTNAME = puzzles-20190415
|
||||
REVISION = 0
|
||||
CATEGORIES = games
|
||||
|
||||
MASTER_SITES = https://rhaalovely.net/stuff/
|
||||
|
18
games/puzzles/patches/patch-palisade_c
Normal file
18
games/puzzles/patches/patch-palisade_c
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-palisade_c,v 1.1 2019/08/19 18:12:31 cwen Exp $
|
||||
|
||||
Fix for archs where char is unsigned by default (ppc, arm):
|
||||
error: result of comparison of constant -1 with expression of type
|
||||
'clue' (aka 'char')
|
||||
|
||||
Index: palisade.c
|
||||
--- palisade.c.orig
|
||||
+++ palisade.c
|
||||
@@ -46,7 +46,7 @@ struct game_params {
|
||||
int w, h, k;
|
||||
};
|
||||
|
||||
-typedef char clue;
|
||||
+typedef signed char clue;
|
||||
typedef unsigned char borderflag;
|
||||
|
||||
typedef struct shared_state {
|
Loading…
Reference in New Issue
Block a user