diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
commit | c719fdcee603a5a706a45d10cb598762d56a727d (patch) | |
tree | 620cbf137661399a3fb1eff92914204f9a970713 /games-emulation/desmume/files | |
parent | cc4618c9ba3d974948ebf340b542d8cb01db2f55 (diff) |
gentoo resync : 25.09.2021
Diffstat (limited to 'games-emulation/desmume/files')
-rw-r--r-- | games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch | 16 |
1 files changed, 16 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..164cb5af4836 --- /dev/null +++ b/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch @@ -0,0 +1,16 @@ +Fix build with clang https://bugs.gentoo.org/739144 + +Fixed upstream in: https://github.com/TASVideos/desmume/commit/92cb90f +--- 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) |