]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkbitmaskprivateimpl.h
appchooserdialog: remove redundant checks
[~andy/gtk] / gtk / gtkbitmaskprivateimpl.h
index 0dea65abe79843a4e05debcd7cc8940df23955f5..c0058c77da94bd30866cebf5b59ee301c697b830 100644 (file)
@@ -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;
 }