summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_mesh.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-21 13:18:02 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-21 13:18:02 -0500
commit06e014959bbbdbf18bca390427baecbc84faa635 (patch)
tree689a2064d88cc4dbb333ae61a88ed028da85f8c6 /src/lib/evas/canvas/evas_canvas3d_mesh.c
parent12fad8444b7e0a743cd546dda0c1dfcb3d5e17cc (diff)
evas: don't use float comparison for integers
As derek pointed out, 'stride' here is an integer so does not need a float comparison, so just use a simple integer comparison. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_mesh.c')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index 98647a5..b24c7ec 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -934,7 +934,7 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
934 { 934 {
935 float *ptr; 935 float *ptr;
936 936
937 if (!EINA_FLT_CMP(pos0->stride, 0.0)) 937 if (pos0->stride != 0)
938 ptr = (float *)((char *)pos0->data + pos0->stride * index); 938 ptr = (float *)((char *)pos0->data + pos0->stride * index);
939 else 939 else
940 ptr = (float *)pos0->data + 3 * index; 940 ptr = (float *)pos0->data + 3 * index;
@@ -947,12 +947,12 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
947 { 947 {
948 float *ptr0, *ptr1; 948 float *ptr0, *ptr1;
949 949
950 if (!EINA_FLT_CMP(pos0->stride, 0.0)) 950 if (pos0->stride != 0)
951 ptr0 = (float *)((char *)pos0->data + pos0->stride * index); 951 ptr0 = (float *)((char *)pos0->data + pos0->stride * index);
952 else 952 else
953 ptr0 = (float *)pos0->data + 3 * index; 953 ptr0 = (float *)pos0->data + 3 * index;
954 954
955 if (!EINA_FLT_CMP(pos1->stride, 0.0)) 955 if (pos1->stride != 0)
956 ptr1 = (float *)((char *)pos1->data + pos1->stride * index); 956 ptr1 = (float *)((char *)pos1->data + pos1->stride * index);
957 else 957 else
958 ptr1 = (float *)pos1->data + 3 * index; 958 ptr1 = (float *)pos1->data + 3 * index;