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
This commit is contained in:
Benjamin Otte 2014-12-11 12:45:20 +01:00
parent 23c5f11391
commit 3e9067ce1c

View File

@ -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