[seahorse/gint-to-int] style: gdouble -> double



commit 9a7325915a6e1db1f0b74bfe9f5c45b0c792981a
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Jul 25 12:24:30 2021 +0200

    style: gdouble -> double
    
    Stop using GLib types that are typedefs to actual C types. It's
    confusing for newcomers and applications/webapps that show the actual
    code.
    
    Replace `gdouble`, since it has relatively little uses in the code.

 pgp/seahorse-gpgme-photos.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-photos.c b/pgp/seahorse-gpgme-photos.c
index e2dffae6..24bb517a 100644
--- a/pgp/seahorse-gpgme-photos.c
+++ b/pgp/seahorse-gpgme-photos.c
@@ -52,8 +52,8 @@ calc_scale (int *width, int *height)
     /* Keep aspect ratio, and don't squash large aspect ratios
      * unnecessarily. */
     ratio = imgpx / recpx;
-    *height = ((gdouble)(*height)) / ratio;
-    *width = ((gdouble)(*width)) / ratio;
+    *height = ((double) (*height)) / ratio;
+    *width = ((double) (*width)) / ratio;
     return TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]