Fix for newer gcc. Picked from GoogleCode
This commit is contained in:
parent
1d45cd0ff1
commit
743b3157bc
1 changed files with 1 additions and 1 deletions
|
@ -1916,7 +1916,7 @@ done:
|
|||
for (uint packed_c = 0; packed_c < limit; packed_c++)
|
||||
{
|
||||
int v = etc1_decode_value(diff, inten, selector, packed_c);
|
||||
uint err = intabs(v - color);
|
||||
uint err = labs(v - static_cast<int>(color));
|
||||
//printf("err: %d - %u = %u\n",v,color,err);
|
||||
#ifdef JAVASCRIPT_ENABLED
|
||||
if (err < best_error || best_error == cUINT32_MAX)
|
||||
|
|
Loading…
Reference in a new issue