diff options
author | 2021-09-19 00:48:09 +0100 | |
---|---|---|
committer | 2021-09-18 20:38:17 -0400 | |
commit | 9bf0d9a9e6c1c4f4d56b731b77dabc728f0889c8 (patch) | |
tree | edb92202074979ac5678c7f58730bcda2d3f6794 /games-emulation/desmume | |
parent | sys-auth/sssd: drop unused flag-o-matic (diff) | |
download | gentoo-9bf0d9a9e6c1c4f4d56b731b77dabc728f0889c8.tar.gz gentoo-9bf0d9a9e6c1c4f4d56b731b77dabc728f0889c8.tar.bz2 gentoo-9bf0d9a9e6c1c4f4d56b731b77dabc728f0889c8.zip |
games-emulation/desmume: fix build with clang
Closes: https://bugs.gentoo.org/739144
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/22331
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-emulation/desmume')
-rw-r--r-- | games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild | 1 | ||||
-rw-r--r-- | games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild index c3a847606182..9cc9dd366242 100644 --- a/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild +++ b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild @@ -36,6 +36,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${P}-fix-gtk-cliopts.patch "${FILESDIR}"/${P}-openal-automagic.patch + "${FILESDIR}"/${P}-clang.patch ) DOCS=( ${PN}/{AUTHORS,ChangeLog,README,README.LIN,doc/.} ) diff --git a/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch b/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch new file mode 100644 index 000000000000..e80cebced38c --- /dev/null +++ b/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch @@ -0,0 +1,15 @@ +Fix build with clang https://bugs.gentoo.org/739144 + +--- a/desmume/src/texcache.cpp ++++ b/desmume/src/texcache.cpp +@@ -1165,8 +1165,8 @@ void NDSTextureUnpack4x4(const size_t sr + + for (size_t y = 0, d = 0; y < yTmpSize; y++) + { +- u32 tmpPos[4]={(y<<2)*sizeX,((y<<2)+1)*sizeX, +- ((y<<2)+2)*sizeX,((y<<2)+3)*sizeX}; ++ u32 tmpPos[4]={u32(y<<2)*sizeX,u32((y<<2)+1)*sizeX, ++ u32((y<<2)+2)*sizeX,u32((y<<2)+3)*sizeX}; + for (size_t x = 0; x < xTmpSize; x++, d++) + { + if (d >= limit) |