summaryrefslogtreecommitdiff
path: root/src/bin/elementary/perf_test_06.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-11 08:56:34 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-02-11 08:56:34 -0500
commiteb4af00c30f3f80e0d9707bfb44341ef302cda87 (patch)
treed126a906833d4cb91884b6e53ae886ecba0c6b86 /src/bin/elementary/perf_test_06.c
parentfbf792896febc45a47951c033d7bbc7320b44160 (diff)
elm perf_test: fix warning of implicit conversion of floating point
Summary: The result of integral division is converted into floating point. In order to fix this warning, it changes denominator to double from integer. Reviewers: Jaehyun_Cho, Hermet, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11313
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/perf_test_06.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/elementary/perf_test_06.c b/src/bin/elementary/perf_test_06.c
index 952a4bced2..d227d65557 100644
--- a/src/bin/elementary/perf_test_06.c
+++ b/src/bin/elementary/perf_test_06.c
@@ -36,9 +36,9 @@ TST(06, tick) (Evas *e EINA_UNUSED, double f, Evas_Coord win_w, Evas_Coord win_h
36 w = 5 + ((1.0 + cos((double)((f * 30.0) + (i * 10)))) * w0 * 2); 36 w = 5 + ((1.0 + cos((double)((f * 30.0) + (i * 10)))) * w0 * 2);
37 h = 5 + ((1.0 + sin((double)((f * 40.0) + (i * 19)))) * h0 * 2); 37 h = 5 + ((1.0 + sin((double)((f * 40.0) + (i * 19)))) * h0 * 2);
38 x = (win_w / 2) - (w / 2); 38 x = (win_w / 2) - (w / 2);
39 x += sin((double)((f * 50.0) + (i * 13))) * (w0 / 2); 39 x += sin((double)((f * 50.0) + (i * 13))) * (w0 / 2.0);
40 y = (win_h / 2) - (h / 2); 40 y = (win_h / 2) - (h / 2);
41 y += cos((double)((f * 45.0) + (i * 28))) * (h0 / 2); 41 y += cos((double)((f * 45.0) + (i * 28))) * (h0 / 2.0);
42 evas_object_geometry_set(o, x, y, w, h); 42 evas_object_geometry_set(o, x, y, w, h);
43 } 43 }
44} 44}