X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkbitmaskprivateimpl.h;h=c0058c77da94bd30866cebf5b59ee301c697b830;hb=944fa635ae4e9bae6246e8137d8bb19d836e4e86;hp=0dea65abe79843a4e05debcd7cc8940df23955f5;hpb=b2a8e6ed047db0b306945753e53a534affacd82b;p=~andy%2Fgtk diff --git a/gtk/gtkbitmaskprivateimpl.h b/gtk/gtkbitmaskprivateimpl.h index 0dea65abe..c0058c77d 100644 --- a/gtk/gtkbitmaskprivateimpl.h +++ b/gtk/gtkbitmaskprivateimpl.h @@ -159,9 +159,9 @@ static inline gboolean _gtk_bitmask_intersects (const GtkBitmask *mask, const GtkBitmask *other) { - if (!_gtk_bitmask_is_allocated (mask) || - !_gtk_bitmask_is_allocated (other)) + if (_gtk_bitmask_is_allocated (mask) || + _gtk_bitmask_is_allocated (other)) return _gtk_allocated_bitmask_intersects (mask, other); else - return _gtk_bitmask_to_bits (mask) & _gtk_bitmask_to_bits (other); + return _gtk_bitmask_to_bits (mask) & _gtk_bitmask_to_bits (other) ? TRUE : FALSE; }