Skip to content
Snippets Groups Projects

add parenthesis around expression

Merged Christian Hesse requested to merge eworm/xfmpc:parenthesis into master

Add parenthesis around expression before casting to boolean. This fixes:

main-window.vala:202.8-202.57: error: Condition must be boolean if ((bool) event.changed_mask & Gdk.WindowState.STICKY && this.visible) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ main-window.vala:204.9-204.73: error: Equality operation: bool' and Gdk.WindowState' are incompatible if (((bool) event.new_window_state & Gdk.WindowState.STICKY) == false) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Signed-off-by: Christian Hesse mail@eworm.de

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading