[gedit] tab: guint for bit fields



commit 887a0b279e066cfa2cdf4231bd8e24beb9822e22
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jun 10 19:29:23 2015 +0200

    tab: guint for bit fields
    
    It's safer to have an unsigned type. There is maybe a bug on Windows
    with gint as bit fields.

 gedit/gedit-tab.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 2a9c451..bd23177 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -76,10 +76,10 @@ struct _GeditTab
        gint auto_save_interval;
        guint auto_save_timeout;
 
-       gint editable : 1;
-       gint auto_save : 1;
+       guint editable : 1;
+       guint auto_save : 1;
 
-       gint ask_if_externally_modified : 1;
+       guint ask_if_externally_modified : 1;
 
        /* tmp data for loading */
        guint user_requested_encoding : 1;


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