Fix for newer gcc. Picked from GoogleCode

This commit is contained in:
V.VamsiKrishna 2015-03-19 10:35:24 +05:30
parent 1d45cd0ff1
commit 743b3157bc

View file

@ -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)