Operator precedence bug

PR:		11411
Submitted by:	Christopher Peterson <cpeterso@cs.washington.edu>
This commit is contained in:
Peter Wemm 1999-05-02 21:51:17 +00:00
parent 271694cc1e
commit f79cfdd928
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
* $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
*
*/
#include <sys/param.h>
@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
int error = 0;
if (PCF_GET_S1(pcf) & nBB == 0)
if ((PCF_GET_S1(pcf) & nBB) == 0)
return (IIC_EBUSBSY);
/* set slave address to PCF. Last bit (LSB) must be set correctly

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
* $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
*
*/
#include <sys/param.h>
@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
int error = 0;
if (PCF_GET_S1(pcf) & nBB == 0)
if ((PCF_GET_S1(pcf) & nBB) == 0)
return (IIC_EBUSBSY);
/* set slave address to PCF. Last bit (LSB) must be set correctly