mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 01:41:51 +00:00
Fix for newer gcc. Picked from GoogleCode
This commit is contained in:
parent
1d45cd0ff1
commit
743b3157bc
@ -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 New Issue
Block a user