forked from enlightenment/efl
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>
This commit is contained in:
parent
12fad8444b
commit
06e014959b
|
@ -934,7 +934,7 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
|
||||||
{
|
{
|
||||||
float *ptr;
|
float *ptr;
|
||||||
|
|
||||||
if (!EINA_FLT_CMP(pos0->stride, 0.0))
|
if (pos0->stride != 0)
|
||||||
ptr = (float *)((char *)pos0->data + pos0->stride * index);
|
ptr = (float *)((char *)pos0->data + pos0->stride * index);
|
||||||
else
|
else
|
||||||
ptr = (float *)pos0->data + 3 * index;
|
ptr = (float *)pos0->data + 3 * index;
|
||||||
|
@ -947,12 +947,12 @@ evas_canvas3d_mesh_interpolate_position_get(Eina_Vector3 *out, const Evas_Canvas
|
||||||
{
|
{
|
||||||
float *ptr0, *ptr1;
|
float *ptr0, *ptr1;
|
||||||
|
|
||||||
if (!EINA_FLT_CMP(pos0->stride, 0.0))
|
if (pos0->stride != 0)
|
||||||
ptr0 = (float *)((char *)pos0->data + pos0->stride * index);
|
ptr0 = (float *)((char *)pos0->data + pos0->stride * index);
|
||||||
else
|
else
|
||||||
ptr0 = (float *)pos0->data + 3 * index;
|
ptr0 = (float *)pos0->data + 3 * index;
|
||||||
|
|
||||||
if (!EINA_FLT_CMP(pos1->stride, 0.0))
|
if (pos1->stride != 0)
|
||||||
ptr1 = (float *)((char *)pos1->data + pos1->stride * index);
|
ptr1 = (float *)((char *)pos1->data + pos1->stride * index);
|
||||||
else
|
else
|
||||||
ptr1 = (float *)pos1->data + 3 * index;
|
ptr1 = (float *)pos1->data + 3 * index;
|
||||||
|
|
Loading…
Reference in New Issue