diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-21 08:34:06 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-22 21:02:04 +0200 |
commit | bad30259515d0e3ce438ae8d6236216e393f463e (patch) | |
tree | d4d4a30c281e1868d9bf62924a819f08ed36a4dc /src | |
parent | CMakeLists: Treat MSVC warnings as errors (diff) | |
download | yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar.gz yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar.bz2 yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar.lz yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar.xz yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.tar.zst yuzu-bad30259515d0e3ce438ae8d6236216e393f463e.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/textures/decoders.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index 52d067a2d..fd1a4b987 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -21,7 +21,7 @@ constexpr u32 pdep(u32 value) { u32 m = mask; for (u32 bit = 1; m; bit += bit) { if (value & bit) - result |= m & -m; + result |= m & (~m + 1); m &= m - 1; } return result; |