Ector: Fix (probably valid) clang warning

This time it looks like this is a valid warning.
if (abs(double) <= 0.00001f) might too often be true since abs() returns
an int.
This commit is contained in:
Jean-Philippe Andre 2015-04-21 19:02:57 +09:00
parent 5bc153c6fb
commit 45b15037ef
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ fetch_radial_gradient(uint *buffer, Span_Data *data, int y, int x, int length)
Ector_Renderer_Software_Gradient_Data *g_data = data->gradient;
// avoid division by zero
if (abs(g_data->radial.a) <= 0.00001f)
if (fabsf(g_data->radial.a) <= 0.00001f)
{
_ector_memfill(buffer, 0, length);
return;