[gtk+] cssselector: Reserve more bits for enum
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssselector: Reserve more bits for enum
- Date: Thu, 11 Dec 2014 11:50:56 +0000 (UTC)
commit 3e9067ce1c602dfff0d1450be52e9cabef869f79
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 11 12:45:20 2014 +0100
cssselector: Reserve more bits for enum
Apparently some compilers make enums an int and then we get negative
values.
https://bugzilla.gnome.org/show_bug.cgi?id=741375
gtk/gtkcssselector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index ec49884..9d0d336 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -71,7 +71,7 @@ typedef enum {
POSITION_ONLY,
POSITION_SORTED
} PositionType;
-#define POSITION_TYPE_BITS 2
+#define POSITION_TYPE_BITS 4
#define POSITION_NUMBER_BITS ((sizeof (gpointer) * 8 - POSITION_TYPE_BITS) / 2)
union _GtkCssSelector
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]