diff options
author | rbuj <[email protected]> | 2019-09-02 19:02:11 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2019-09-03 18:06:51 +0200 |
commit | eed33e746575b393a7f6e958e53c680b8cb6f70b (patch) | |
tree | 5ca065174ba3628e34b3cd81f0b62620e05d6354 | |
parent | 306f1ba1ff5a5d750040f9fc1e75a3c8af3c63d3 (diff) | |
download | eom-eed33e746575b393a7f6e958e53c680b8cb6f70b.tar.bz2 eom-eed33e746575b393a7f6e958e53c680b8cb6f70b.tar.xz |
remove warnings: incorrect usage of abs() [-Wabsolute-value]
eom-transform.c:135:15: warning: using integer absolute value function ‘abs’ when argument is of floating point type ‘gdouble’ {aka ‘double’} [-Wabsolute-value]
eom-transform.c:136:16: warning: using integer absolute value function ‘abs’ when argument is of floating point type ‘gdouble’ {aka ‘double’} [-Wabsolute-value]
-rw-r--r-- | src/eom-transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), |