Fix some missing parentheses

* Problem found by gcc4.
This commit is contained in:
Adrien Destugues
2016-08-27 09:31:16 +02:00
parent 96658eaed9
commit 2080509cb0
2 changed files with 4 additions and 4 deletions
@@ -98,7 +98,7 @@ intel_get_interrupt_mask(intel_info& info, int pipes, bool enable)
// Intel changed the PCH register mapping between Sandy Bridge and the
// later generations (Ivy Bridge and up).
if (pipes & INTEL_PIPE_A != 0) {
if ((pipes & INTEL_PIPE_A) != 0) {
if (info.device_type.InGroup(INTEL_GROUP_SNB))
mask |= PCH_INTERRUPT_VBLANK_PIPEA_SNB;
else if (hasPCH)
@@ -107,7 +107,7 @@ intel_get_interrupt_mask(intel_info& info, int pipes, bool enable)
mask |= INTERRUPT_VBLANK_PIPEA;
}
if (pipes & INTEL_PIPE_B != 0) {
if ((pipes & INTEL_PIPE_B) != 0) {
if (info.device_type.InGroup(INTEL_GROUP_SNB))
mask |= PCH_INTERRUPT_VBLANK_PIPEB_SNB;
else if (hasPCH)
+2 -2
View File
@@ -105,7 +105,7 @@ tcsendbreak(int fd, int duration)
speed_t
cfgetispeed(const struct termios *termios)
{
if (termios->c_cflag & CBAUD == CBAUD)
if ((termios->c_cflag & CBAUD) == CBAUD)
return termios->c_ispeed;
return termios->c_cflag & CBAUD;
@@ -134,7 +134,7 @@ cfsetispeed(struct termios *termios, speed_t speed)
speed_t
cfgetospeed(const struct termios *termios)
{
if (termios->c_cflag & CBAUD == CBAUD)
if ((termios->c_cflag & CBAUD) == CBAUD)
return termios->c_ospeed;
return termios->c_cflag & CBAUD;