mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Clang scan-build error fix
This commit is contained in:
parent
b0f21e7c2e
commit
821ffc9962
@ -150,7 +150,10 @@ static unsigned count_sad(const uint8_t *data, size_t size)
|
|||||||
size_t i;
|
size_t i;
|
||||||
unsigned cnt = 0;
|
unsigned cnt = 0;
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
cnt += abs((int8_t)data[i]);
|
{
|
||||||
|
if (data[i])
|
||||||
|
cnt += abs((int8_t)data[i]);
|
||||||
|
}
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user