ami pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4b4564c85776edafde9ae6407a3abc7a67910cf6
commit 4b4564c85776edafde9ae6407a3abc7a67910cf6 Author: Amitesh Singh <amitesh...@samsung.com> Date: Mon Jul 24 09:50:05 2017 +0900 edje_cc out: fix div by 0 correctly --- src/bin/edje/edje_cc_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index 1f4315cef7..99f46bf564 100644 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c @@ -2529,7 +2529,7 @@ data_thread_license(void *data, Ecore_Thread *thread EINA_UNUSED) { double fsize = eina_file_size_get(f); - if (fsize < 0.0) fsize = 0.0; + if (fsize <= 0.0) fsize = 1.0; INF("Wrote %9i bytes (%4iKb) for \"%s\" license entry compress: [real: %2.1f%%]", bytes, (bytes + 512) / 1024, license, 100.0 - ((100.0 * (double)bytes) / fsize)); @@ -2617,7 +2617,7 @@ data_thread_authors(void *data, Ecore_Thread *thread EINA_UNUSED) { double fsize = eina_file_size_get(f); - if (fsize < 0.0) fsize = 0.0; + if (fsize <= 0.0) fsize = 1.0; INF("Wrote %9i bytes (%4iKb) for \"%s\" authors entry compress: [real: %2.1f%%]", bytes, (bytes + 512) / 1024, license, 100.0 - ((100.0 * (double)bytes) / fsize)); --