[gnome-online-accounts/wip/rishi/drop-deprecated-gtimeval-gmemmove: 2/4] oauth, oauth2: Add explicit casts



commit 7c4b97aa52057ae5a16794ba94c9f0722e95b522
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 29 19:44:59 2019 +0100

    oauth, oauth2: Add explicit casts
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/37

 src/goabackend/goaoauth2provider.c | 2 +-
 src/goabackend/goaoauthprovider.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index ef56d05b..8bfb6e64 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -1087,7 +1087,7 @@ abs_usec_to_duration (gint64 abs_usec)
   g_get_current_time (&now);
   ret = abs_usec - (((gint64) now.tv_sec) * 1000L * 1000L + ((gint64) now.tv_usec));
   ret /= 1000L * 1000L;
-  return ret;
+  return (gint) ret;
 }
 
 static void
diff --git a/src/goabackend/goaoauthprovider.c b/src/goabackend/goaoauthprovider.c
index 006a92b5..1fc49cc7 100644
--- a/src/goabackend/goaoauthprovider.c
+++ b/src/goabackend/goaoauthprovider.c
@@ -998,7 +998,7 @@ abs_usec_to_duration (gint64 abs_usec)
   g_get_current_time (&now);
   ret = abs_usec - (((gint64) now.tv_sec) * 1000L * 1000L + ((gint64) now.tv_usec));
   ret /= 1000L * 1000L;
-  return ret;
+  return (gint) ret;
 }
 
 static GoaObject *


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