|
From: | Rolf Ebert |
Subject: | Re: [avr-libc-dev] New device support |
Date: | Sat, 14 Jul 2007 23:33:39 +0200 |
User-agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
Joerg Wunsch schrieb:
Rule 6.5: "Bit fields of type signed int shall be at least two bits long".That makes no sense at all to me (but that's not surprising with MISRA, I'd say ;-).
*signed* ints do need two bits at least, one for the sign and one for the number. I read rule 6.5 as prefering unsigned ints for bit fields.
Generally, I agree with you about MISRA ... Rolf
[Prev in Thread] | Current Thread | [Next in Thread] |