08-07-2015, 05:34 AM
#define NUM 9u
#define NUM2 8
/* gus32cmd is keyboard entry .numbers from 1 to 10*/
scanf("%d", &gus32cmd );
Switch(gus32cmd)
{
case:NUM
....
....
break;
case NUM2
..
..
break;
}
At lines case:NUM and case NUM2 I got following misra c error
"Rule 10.1 violated "implicit conversion of complex integer expression to a small sized integer is not allowed"
What correction I should do to avoid this error
#define NUM2 8
/* gus32cmd is keyboard entry .numbers from 1 to 10*/
scanf("%d", &gus32cmd );
Switch(gus32cmd)
{
case:NUM
....
....
break;
case NUM2
..
..
break;
}
At lines case:NUM and case NUM2 I got following misra c error
"Rule 10.1 violated "implicit conversion of complex integer expression to a small sized integer is not allowed"
What correction I should do to avoid this error
<t></t>