From 2d68de96c62c1e6d6a2b615336d99b671fc672b7 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 29 May 2017 00:10:28 +0800 Subject: Avoid double literals causing casts to float. --- source/pdf/pdf-annot-edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf/pdf-annot-edit.c') diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index 0dada7f2..e557edd4 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -3,7 +3,7 @@ #include -#define TEXT_ANNOT_SIZE (25.0) +#define TEXT_ANNOT_SIZE (25.0f) const char * pdf_string_from_annot_type(fz_context *ctx, fz_annot_type type) @@ -95,7 +95,7 @@ pdf_create_annot(fz_context *ctx, pdf_page *page, fz_annot_type type) fz_try(ctx) { int ind_obj_num; - fz_rect rect = {0.0, 0.0, 0.0, 0.0}; + fz_rect rect = {0.0f, 0.0f, 0.0f, 0.0f}; const char *type_str; pdf_obj *annot_arr; -- cgit v1.2.3