mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-10 05:33:14 +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;
|
||||
unsigned cnt = 0;
|
||||
for (i = 0; i < size; i++)
|
||||
cnt += abs((int8_t)data[i]);
|
||||
{
|
||||
if (data[i])
|
||||
cnt += abs((int8_t)data[i]);
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user