interface & app_server: Fix missing parentheses near ternary operators.

+ has greater operator precendence than ?, so we need parentheses when
using both in expressions. Both of these look like actual bugs.

Spotted by Clang.
This commit is contained in:
Augustin Cavalier
2018-06-21 22:04:31 -04:00
parent b9491db99c
commit 582afd9a7f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -352,5 +352,5 @@ _BMCMenuBar_::_Init()
left = right = be_control_look->DefaultLabelSpacing();
SetItemMargins(left, top,
right + fShowPopUpMarker ? kPopUpIndicatorWidth : 0, bottom);
right + (fShowPopUpMarker ? kPopUpIndicatorWidth : 0), bottom);
}
+1 -1
View File
@@ -299,7 +299,7 @@ DelayedMessageData::DelayedMessageData(int32 code, bigtime_t delay,
bool isSpecificTime)
:
fCode(code),
fScheduledTime(delay + isSpecificTime ? 0 : system_time()),
fScheduledTime(delay + (isSpecificTime ? 0 : system_time())),
fValid(false),
fAttachments(3, true),