Fix some missing parentheses
* Problem found by gcc4.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user