]> Pileus Git - ~andy/gtk/commitdiff
Use 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov)
authorOwen Taylor <otaylor@redhat.com>
Mon, 23 Sep 2002 19:20:48 +0000 (19:20 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 23 Sep 2002 19:20:48 +0000 (19:20 +0000)
Mon Sep 23 14:58:04 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkhandlebox.h gtk/gtktextbtree.[ch]:
        Use 'signed int' not 'gint' for signed bitfields.
        (#93020, Vitaly Tishkov)

        * gtk/gtktextlayout.h gtk/gtktextbtree.[ch]:
        Fix some 'gint' bitfields that should have been
        unsigned.

gtk/gtkhandlebox.h
gtk/gtktextbtree.c
gtk/gtktextbtree.h
gtk/gtktextlayout.h

index 48176963fcc6d18aefce8d8c3c91df5cbd5c2ca7..1f6ec3e2929bd13cfda7f5197845ab4beebeda0f 100644 (file)
@@ -67,7 +67,7 @@ struct _GtkHandleBox
   guint                  in_drag : 1;
   guint                  shrink_on_detach : 1;
 
-  gint            snap_edge : 3; /* -1 == unset */
+  signed int      snap_edge : 3; /* -1 == unset */
   
   /* Variables used during a drag
    */
index 7f270e19a8da16ceab35e61e44517b0775d93661..42194fbc2d2a17cb15eece6c48bf6af3775fca1b 100644 (file)
@@ -100,7 +100,7 @@ struct _NodeData {
 
   /* Height and width of this node */
   gint height;
-  gint width : 24;
+  signed int width : 24;
 
   /* boolean indicating whether the lines below this node are in need of validation.
    * However, width/height should always represent the current total width and
@@ -108,7 +108,7 @@ struct _NodeData {
    * width/height on the lines needs recomputing, not whether the totals
    * need recomputing.
    */
-  gint valid : 8;
+  guint valid : 8;             /* Actually a boolean */
 };
 
 
index dea958ec371e8d5a17436b12453eefbfa5086eb2..d3553624ebce81c432c2a8d250a8b36af20c8bc5 100644 (file)
@@ -192,8 +192,8 @@ struct _GtkTextLineData {
   gpointer view_id;
   GtkTextLineData *next;
   gint height;
-  gint width : 24;
-  gint valid : 8;
+  signed int width : 24;
+  guint valid : 8;             /* Actually a boolean */
 };
 
 /*
index c794e3b9b7878874211d970fc269ee69be335cb9..42126ed73d207c96cc3350dacf866ac9dbf2a4ca 100644 (file)
@@ -163,7 +163,7 @@ struct _GtkTextLayout
   /* For what GtkTextDirection to draw cursor GTK_TEXT_DIR_NONE -
    * means draw both cursors.
    */
-  gint cursor_direction : 2;
+  guint cursor_direction : 2;
 
   /* The preedit string and attributes, if any */