summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-01-20 21:54:28 +0000
committerChris Wilson <cpwilson@src.gnome.org>2007-01-20 21:54:28 +0000
commit9c70a15321c4f01cc87728c76958780eb58a2050 (patch)
treee20cceae004311ac8a044551f525cfbed4084644
parent633016c80df82f651e3add9f947fcaacb4fc427e (diff)
downloadvte-9c70a15321c4f01cc87728c76958780eb58a2050.tar.gz
<kmaraas> ickle: sparse complains about dubious 1 bit bitfields if you use
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk> <kmaraas> ickle: sparse complains about dubious 1 bit bitfields if you use gboolean instead of guint <kmaraas> so s/gboolean/guint at line 166 and 174 <mariano> unless that changes the API, of course... <kmaraas> it doesn't <mariano> gboolean a:1 is not very correct anyways <kmaraas> ickle: we've done the same change in other modules <ickle> if I do it quick, behdad might not even notice ;) * src/vte.h: Convert signed single bit field to unsigned. The code was setting it to 1 anyhow (and not -1 as the type indicated). svn path=/trunk/; revision=1488
-rw-r--r--ChangeLog15
-rw-r--r--src/vte.h4
2 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b4a364d5..3d41adb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
+ <kmaraas> ickle: sparse complains about dubious 1 bit bitfields
+ if you use gboolean instead of guint
+ <kmaraas> so s/gboolean/guint at line 166 and 174
+ <mariano> unless that changes the API, of course...
+ <kmaraas> it doesn't
+ <mariano> gboolean a:1 is not very correct anyways
+ <kmaraas> ickle: we've done the same change in other modules
+ <ickle> if I do it quick, behdad might not even notice ;)
+
+ * src/vte.h:
+ Convert signed single bit field to unsigned. The code
+ was setting it to 1 anyhow (and not -1 as the type indicated).
+
+2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
+
Bug 398602 – Build Failure
* src/vte.c: (vte_terminal_expose):
diff --git a/src/vte.h b/src/vte.h
index fadc29f7..a0928148 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -163,7 +163,7 @@ typedef enum {
struct _VteCharAttributes {
long row, column;
GdkColor fore, back;
- gboolean underline:1, strikethrough:1;
+ guint underline:1, strikethrough:1;
};
typedef struct _VteCharAttributes VteCharAttributes;
@@ -171,7 +171,7 @@ typedef struct _VteCharAttributes VteCharAttributes;
struct vte_char_attributes {
long row, column;
GdkColor fore, back;
- gboolean underline:1, strikethrough:1;
+ guint underline:1, strikethrough:1;
};
/* The widget's type. */