summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_gradient.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 19:02:57 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 20:11:02 +0900
commit45b15037ef1e0a1ed10b1d555597e6c503a2be0a (patch)
tree7a076596a5ea5bb9f4434e3abf7c96a4f3a1fb66 /src/lib/ector/software/ector_software_gradient.c
parent5bc153c6fb7a5a7b60f021e64e16b533d8cdb09a (diff)
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.
Diffstat (limited to 'src/lib/ector/software/ector_software_gradient.c')
-rw-r--r--src/lib/ector/software/ector_software_gradient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ector_software_gradient.c b/src/lib/ector/software/ector_software_gradient.c
index 5c3bcde3b4..afd4dd3daf 100644
--- a/src/lib/ector/software/ector_software_gradient.c
+++ b/src/lib/ector/software/ector_software_gradient.c
@@ -217,7 +217,7 @@ fetch_radial_gradient(uint *buffer, Span_Data *data, int y, int x, int length)
217 Ector_Renderer_Software_Gradient_Data *g_data = data->gradient; 217 Ector_Renderer_Software_Gradient_Data *g_data = data->gradient;
218 218
219 // avoid division by zero 219 // avoid division by zero
220 if (abs(g_data->radial.a) <= 0.00001f) 220 if (fabsf(g_data->radial.a) <= 0.00001f)
221 { 221 {
222 _ector_memfill(buffer, 0, length); 222 _ector_memfill(buffer, 0, length);
223 return; 223 return;