mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
xye: fix gcc6 build
This commit is contained in:
parent
9fe0fafdee
commit
570f6d025e
2 changed files with 12 additions and 1 deletions
11
srcpkgs/xye/patches/fix-gcc6-narrowing.patch
Normal file
11
srcpkgs/xye/patches/fix-gcc6-narrowing.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/xsb_level.cpp 2012-09-15 22:21:06.000000000 +0200
|
||||||
|
+++ src/xsb_level.cpp 2016-09-23 10:56:51.900831887 +0200
|
||||||
|
@@ -784,7 +784,7 @@
|
||||||
|
|
||||||
|
bool FromXyeDFS(int* mem, unsigned char x, unsigned char y)
|
||||||
|
{
|
||||||
|
- static const unsigned char dx[4] = {0,0,-1,1}, dy[4] = {-1,1,0,0};
|
||||||
|
+ static const unsigned char dx[4] = {0x00,0x00,0xff,0x01}, dy[4] = {0xff,0x01,0x00,0x00};
|
||||||
|
int &res = mem[y*XYE_HORZ+x];
|
||||||
|
if( res==0)
|
||||||
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'xye'
|
# Template file for 'xye'
|
||||||
pkgname=xye
|
pkgname=xye
|
||||||
version=0.12.2
|
version=0.12.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
makedepends="SDL_image-devel SDL_ttf-devel"
|
makedepends="SDL_image-devel SDL_ttf-devel"
|
||||||
short_desc="Puzzle game inspired by Kye"
|
short_desc="Puzzle game inspired by Kye"
|
||||||
|
|
Loading…
Add table
Reference in a new issue