diff options
author | V.VamsiKrishna <vk@bsb.in> | 2015-03-19 10:35:24 +0530 |
---|---|---|
committer | V.VamsiKrishna <vk@bsb.in> | 2015-03-19 10:35:24 +0530 |
commit | 743b3157bc4912ec98aae21f0b864ee738c09105 (patch) | |
tree | fd22ec79a8efc5d19db8dbb945f3dc9b1aefe635 /drivers/etc1 | |
parent | 1d45cd0ff12c1feb29f74e73c9a3ffcac9bb760e (diff) |
Fix for newer gcc. Picked from GoogleCode
Diffstat (limited to 'drivers/etc1')
-rw-r--r-- | drivers/etc1/rg_etc1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/etc1/rg_etc1.cpp b/drivers/etc1/rg_etc1.cpp index 28502191da..7eb1427d7a 100644 --- a/drivers/etc1/rg_etc1.cpp +++ b/drivers/etc1/rg_etc1.cpp @@ -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)
|