Fix warning: cannot optimize possibly infinite loops. There was no actual infinite loop, but the intended loop iteration count could have been wrong due to the implicit "mod 256" when previously assigning a value to a guint8.

svn path=/trunk/; revision=50661
This commit is contained in:
Chris Maynard 2013-07-16 03:34:04 +00:00
parent 86147047f5
commit 44e4c933de
1 changed files with 2 additions and 2 deletions

View File

@ -908,8 +908,8 @@ static void
rs12(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
static const int *byte1[] = { &hf_ipmi_picmg_12_dynamic, &hf_ipmi_picmg_12_pwr_lvl, NULL };
guint8 v, v2, i, max;
guint32 tmp;
guint8 v, v2, i;
guint32 tmp, max;
proto_tree_add_bitmask_text(tree, tvb, 0, 1, NULL, NULL, ett_ipmi_picmg_12_byte1, byte1, ENC_LITTLE_ENDIAN, BMT_NO_FALSE);
proto_tree_add_item(tree, hf_ipmi_picmg_12_delay, tvb, 1, 1, ENC_LITTLE_ENDIAN);