From eed33e746575b393a7f6e958e53c680b8cb6f70b Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 2 Sep 2019 19:02:11 +0200 Subject: =?UTF-8?q?remove=20warnings:=20incorrect=20usage=20of=20abs()=20[?= =?UTF-8?q?-Wabsolute-value]=20eom-transform.c:135:15:=20warning:=20using?= =?UTF-8?q?=20integer=20absolute=20value=20function=20=E2=80=98abs?= =?UTF-8?q?=E2=80=99=20when=20argument=20is=20of=20floating=20point=20type?= =?UTF-8?q?=20=E2=80=98gdouble=E2=80=99=20{aka=20=E2=80=98double=E2=80=99}?= =?UTF-8?q?=20[-Wabsolute-value]=20eom-transform.c:136:16:=20warning:=20us?= =?UTF-8?q?ing=20integer=20absolute=20value=20function=20=E2=80=98abs?= =?UTF-8?q?=E2=80=99=20when=20argument=20is=20of=20floating=20point=20type?= =?UTF-8?q?=20=E2=80=98gdouble=E2=80=99=20{aka=20=E2=80=98double=E2=80=99}?= =?UTF-8?q?=20[-Wabsolute-value]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eom-transform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/eom-transform.c b/src/eom-transform.c index e1dd683..19a6c2d 100644 --- a/src/eom-transform.c +++ b/src/eom-transform.c @@ -132,8 +132,8 @@ eom_transform_apply (EomTransform *trans, GdkPixbuf *pixbuf, EomJob *job) } /* create the resulting pixbuf */ - dest_width = abs (dest_bottom_right.x - dest_top_left.x + 1); - dest_height = abs (dest_bottom_right.y - dest_top_left.y + 1); + dest_width = abs ((int) (dest_bottom_right.x - dest_top_left.x + 1)); + dest_height = abs ((int) (dest_bottom_right.y - dest_top_left.y + 1)); dest_pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, gdk_pixbuf_get_has_alpha (pixbuf), -- cgit v1.2.1