mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Use 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov)
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.
This commit is contained in:
parent
d4fe39c3f8
commit
be19be61b7
@ -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
|
||||
*/
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user