[glib: 1/2] Fix a warning reported by static analyser tool: Assignment of a signed value which has type 'time_t'
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Fix a warning reported by static analyser tool: Assignment of a signed value which has type 'time_t'
- Date: Fri, 1 Jun 2018 14:31:12 +0000 (UTC)
commit 593eeff55e01e9b4734f7fb9b29982c6b963031a
Author: Gaurav <ya1gaurav gmail com>
Date: Thu May 31 08:25:31 2018 +0000
Fix a warning reported by static analyser tool:
Assignment of a signed value which has type 'time_t' to a variable of a bigger integer type 'guint64'
gio/gdbusauthmechanismsha1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index aba9cea59..869946d97 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -658,7 +658,7 @@ keyring_generate_entry (const gchar *cookie_context,
}
new_contents = g_string_new (NULL);
- now = time (NULL);
+ now = (guint64) time (NULL);
changed_file = FALSE;
max_line_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]