mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
video_core: rasterizer_accelerated: Fix un/signed mismatch.
This commit is contained in:
parent
50ee9c46ab
commit
a9d24b0df3
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ void RasterizerAccelerated::UpdatePagesCachedCount(VAddr addr, u64 size, int del
|
||||||
ASSERT_MSG(true, "Delta must be non-zero!");
|
ASSERT_MSG(true, "Delta must be non-zero!");
|
||||||
}
|
}
|
||||||
|
|
||||||
count += static_cast<s8>(delta);
|
// Adds or subtracts 1, as count is a unsigned 8-bit value
|
||||||
|
count += static_cast<u8>(delta);
|
||||||
|
|
||||||
// Assume delta is either -1 or 1
|
// Assume delta is either -1 or 1
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
|
|
Loading…
Reference in a new issue