From 743b3157bc4912ec98aae21f0b864ee738c09105 Mon Sep 17 00:00:00 2001 From: "V.VamsiKrishna" Date: Thu, 19 Mar 2015 10:35:24 +0530 Subject: [PATCH] Fix for newer gcc. Picked from GoogleCode --- drivers/etc1/rg_etc1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/etc1/rg_etc1.cpp b/drivers/etc1/rg_etc1.cpp index 28502191daa..7eb1427d7a0 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(color)); //printf("err: %d - %u = %u\n",v,color,err); #ifdef JAVASCRIPT_ENABLED if (err < best_error || best_error == cUINT32_MAX)