Reason behind MISRA rule 111

May 16, 2011 3 Replies

Hi,



I am just curious to know what the reason behind MISRA rule 111.



The rule says - Bit fields shall only be defined to be one of type unsigned int or signed int


I have used UINT32 instead of unsigned int in my code but compiler has thrown a warning says - "field type should be int"


Could somebody please put light on this.



Thanks Vikas



--------------------------------------- Posted through

formatting link


In message , vikasvds writes

You are asking in the wrong place.

Try the forum at

formatting link

No one in this NG can.

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Better yet, try reading the multitude of responses to your post on the

12th. Jeesh.
Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" was written for you. See details at http://www.wescottdesign.com/actfes/actfes.html

I know... proved my point

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required