diff options
author | Dmitry Shachnev <mitya57@ubuntu.com> | 2015-09-27 15:10:15 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-09-27 15:12:22 +0200 |
commit | 97293865b5c3e10fa65009e5f787312a17f47b06 (patch) | |
tree | 2b57b4c61077d1f0a6c6837fd90ab5d1dbdb0707 /gtk/gtkallocatedbitmask.c | |
parent | df3304054d7f38fd9f6de9cd9afa837c076c5a5c (diff) | |
download | gtk+-97293865b5c3e10fa65009e5f787312a17f47b06.tar.gz |
bitmask: Don't hardcode 64bit size
This looks like an oversight from "quickly testing a potential fix" and
then forgetting to make a production-ready when it works.
https://bugzilla.gnome.org/show_bug.cgi?id=755691
Diffstat (limited to 'gtk/gtkallocatedbitmask.c')
-rw-r--r-- | gtk/gtkallocatedbitmask.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkallocatedbitmask.c b/gtk/gtkallocatedbitmask.c index f95e312ae9..f655e9d6a1 100644 --- a/gtk/gtkallocatedbitmask.c +++ b/gtk/gtkallocatedbitmask.c @@ -312,7 +312,7 @@ _gtk_allocated_bitmask_invert_range (GtkBitmask *mask, for (i = start_word; i <= end_word; i++) mask->data[i] ^= ALL_BITS; mask->data[start_word] ^= (((VALUE_TYPE) 1) << start_bit) - 1; - if (end_bit != 63) + if (end_bit != VALUE_SIZE_BITS - 1) mask->data[end_word] ^= ALL_BITS << (end_bit + 1); return gtk_allocated_bitmask_shrink (mask); |