Skip to content

Commit db8437b

Browse files
committed
Fix mask calculation in SPUThread.cpp
1 parent 63f7bcf commit db8437b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpcs3/Emu/Cell/SPUThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static inline usz scan16_rdata(const decltype(spu_thread::rdata)& _lhs, const de
319319
const u32 c = (lhs[i + 2] != rhs[i + 2]) ? 1 : 0;
320320
const u32 d = (lhs[i + 3] != rhs[i + 3]) ? 1 : 0;
321321

322-
mask |= ((a << 0) + (b << 1) + (c << 2) + (c << 3)) << i;
322+
mask |= ((a << 0) + (b << 1) + (c << 2) + (d << 3)) << i;
323323
}
324324

325325
if (mask && (mask & (mask - 1)) == 0)

0 commit comments

Comments
 (0)