diff options
author | David Seifert <soap@gentoo.org> | 2021-04-05 00:28:44 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-04-05 00:28:44 +0200 |
commit | f8ca5cec3197b86edcd3df72896f567844d74796 (patch) | |
tree | 3a01351fc936d6ba5c331a7331efce4ffc377247 /games-roguelike/scourge/files | |
parent | app-misc/tek: Port to EAPI 7 (diff) | |
download | gentoo-f8ca5cec3197b86edcd3df72896f567844d74796.tar.gz gentoo-f8ca5cec3197b86edcd3df72896f567844d74796.tar.bz2 gentoo-f8ca5cec3197b86edcd3df72896f567844d74796.zip |
games-roguelike/scourge: Port to EAPI 7
* Fix building against Clang
Closes: https://bugs.gentoo.org/739330
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-roguelike/scourge/files')
-rw-r--r-- | games-roguelike/scourge/files/scourge-0.21.1-Wc++11-narrowing.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games-roguelike/scourge/files/scourge-0.21.1-Wc++11-narrowing.patch b/games-roguelike/scourge/files/scourge-0.21.1-Wc++11-narrowing.patch new file mode 100644 index 000000000000..a852248c9fc2 --- /dev/null +++ b/games-roguelike/scourge/files/scourge-0.21.1-Wc++11-narrowing.patch @@ -0,0 +1,18 @@ +Allow compiling with Clang +https://bugs.gentoo.org/739330 + +--- a/src/sdlhandler.cpp ++++ b/src/sdlhandler.cpp +@@ -1034,10 +1034,10 @@ + bool SDLHandler::intersects( int x, int y, int w, int h, + int x2, int y2, int w2, int h2 ) { + SDL_Rect ra = { +- x, y, w, h ++ static_cast<Sint16>(x), static_cast<Sint16>(y), static_cast<Uint16>(w), static_cast<Uint16>(h) + }; + SDL_Rect rb = { +- x2, y2, w2, h2 ++ static_cast<Sint16>(x2), static_cast<Sint16>(y2), static_cast<Uint16>(w2), static_cast<Uint16>(h2) + }; + return intersects( &ra, &rb ); + } |