??? 06/02/09 17:28 Read: times |
#165754 - Not a hole in the C spec Responding to: ???'s previous message |
Not a hole in the C spec, but differences in how different compiler vendors have chosen to extend C with a one-bit data type.
That is why developers should be wary, and either use ! as if it is a bool, or ^= 1 which does not try to modify any other (possibly integer-promoted) bits. |
Topic | Author | Date |
PC Lint warning: Toggling WatchDog | 01/01/70 00:00 | |
How to post legible source code | 01/01/70 00:00 | |
Check what happens if you use ! | 01/01/70 00:00 | |
Try This | 01/01/70 00:00 | |
Toggling Watchdog | 01/01/70 00:00 | |
Tried ! yet? | 01/01/70 00:00 | |
Toggling WatchDog | 01/01/70 00:00 | |
Still missing the point!![]() | 01/01/70 00:00 | |
W_D_TIMER = 0xfffe; | 01/01/70 00:00 | |
It is correct for Keil | 01/01/70 00:00 | |
Not a hole in the C spec | 01/01/70 00:00 |