Constant expression result
Usage of | rather than & to check a binary mask. CID 11031.
This commit is contained in:
parent
baadc350b5
commit
0fa5c8f528
@ -131,8 +131,8 @@ DefaultNotifier::ReportProgress(int bytes, int messages, const char* message)
|
||||
if (fItemsDone == fTotalItems && fTotalItems != 0)
|
||||
timeout = 1; // We're done, make the window go away faster
|
||||
|
||||
if ((!fIsInbound && fShowMode | B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING)
|
||||
|| (fIsInbound && fShowMode | B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE))
|
||||
if ((!fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING)
|
||||
|| (fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE))
|
||||
fNotification.Send(timeout);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user