[gnome-software: 17/18] gs-details-page: Add brackets to clarify operator precedence
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 17/18] gs-details-page: Add brackets to clarify operator precedence
- Date: Wed, 9 Jun 2021 13:45:49 +0000 (UTC)
commit ee2be9fafd2475e99c0646265b892d4384953995
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jun 8 13:30:09 2021 +0100
gs-details-page: Add brackets to clarify operator precedence
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-details-page.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 789bb23f4..0ad5fa7d9 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1649,7 +1649,7 @@ gs_details_page_refresh_reviews (GsDetailsPage *self)
/* find what the plugins support */
for (i = 0; i < G_N_ELEMENTS (all_actions); i++) {
if (self->odrs_provider != NULL) {
- possible_actions |= 1u << all_actions[i];
+ possible_actions |= (1u << all_actions[i]);
}
}
@@ -1664,7 +1664,7 @@ gs_details_page_refresh_reviews (GsDetailsPage *self)
g_signal_connect (row, "button-clicked",
G_CALLBACK (gs_details_page_review_button_clicked_cb), self);
if (as_review_get_flags (review) & AS_REVIEW_FLAG_SELF) {
- actions = possible_actions & 1 << GS_REVIEW_ACTION_REMOVE;
+ actions = possible_actions & (1 << GS_REVIEW_ACTION_REMOVE);
show_review_button = FALSE;
} else {
actions = possible_actions & ~(1u << GS_REVIEW_ACTION_REMOVE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]