From cf96efd47dcc44171e2ccfa0c78e9564595e25f6 Mon Sep 17 00:00:00 2001 From: Francois Isabelle Date: Thu, 11 Jan 2007 21:17:46 +0000 Subject: [PATCH] added missing () for operator precedence bug --- ipmitool/lib/ipmi_picmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_picmg.c b/ipmitool/lib/ipmi_picmg.c index 0ac8eed..34a294a 100644 --- a/ipmitool/lib/ipmi_picmg.c +++ b/ipmitool/lib/ipmi_picmg.c @@ -460,7 +460,7 @@ ipmi_picmg_amc_portstate_get(struct ipmi_intf * intf,int device,int channel, /* I don't know what kind of frug addict defined this record */ port = d->linkInfo[0] & 0x0F; type = ((d->linkInfo[0] & 0xF0) >> 4 )|(d->linkInfo[1] & 0x0F ); - ext = (d->linkInfo[1] & 0xF0 >> 4 ); + ext = ((d->linkInfo[1] & 0xF0) >> 4 ); grouping = d->linkInfo[2]; #else