summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2021-09-19 00:48:09 +0100
committerIonen Wolkens <ionen@gentoo.org>2021-09-18 20:38:17 -0400
commit9bf0d9a9e6c1c4f4d56b731b77dabc728f0889c8 (patch)
treeedb92202074979ac5678c7f58730bcda2d3f6794 /games-emulation/desmume/files
parentsys-auth/sssd: drop unused flag-o-matic (diff)
downloadgentoo-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/files')
-rw-r--r--games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch15
1 files changed, 15 insertions, 0 deletions
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)