diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-09-23 19:20:48 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-09-23 19:20:48 +0000 |
commit | be19be61b7c7b10a14b3105e0ff48398080b9463 (patch) | |
tree | b028f48c78bb7c7a48094118bafcbbf202bd2b20 | |
parent | d4fe39c3f880b58f1e41ed25491116a891718eab (diff) | |
download | gtk+-be19be61b7c7b10a14b3105e0ff48398080b9463.tar.gz |
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.
-rw-r--r-- | gtk/gtkhandlebox.h | 2 | ||||
-rw-r--r-- | gtk/gtktextbtree.c | 4 | ||||
-rw-r--r-- | gtk/gtktextbtree.h | 4 | ||||
-rw-r--r-- | gtk/gtktextlayout.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkhandlebox.h b/gtk/gtkhandlebox.h index 48176963fc..1f6ec3e292 100644 --- a/gtk/gtkhandlebox.h +++ b/gtk/gtkhandlebox.h @@ -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 */ diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 7f270e19a8..42194fbc2d 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -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 */ }; diff --git a/gtk/gtktextbtree.h b/gtk/gtktextbtree.h index dea958ec37..d3553624eb 100644 --- a/gtk/gtktextbtree.h +++ b/gtk/gtktextbtree.h @@ -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 */ }; /* diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index c794e3b9b7..42126ed73d 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -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 */ |