[gtk+] bitmask: Don't hardcode 64bit size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] bitmask: Don't hardcode 64bit size
- Date: Sun, 27 Sep 2015 13:14:34 +0000 (UTC)
commit 97293865b5c3e10fa65009e5f787312a17f47b06
Author: Dmitry Shachnev <mitya57 ubuntu com>
Date: Sun Sep 27 15:10:15 2015 +0200
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
gtk/gtkallocatedbitmask.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkallocatedbitmask.c b/gtk/gtkallocatedbitmask.c
index f95e312..f655e9d 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]