Since this thread started, I've been looking at various compilers.... At the documentation... The why's and why not's.
I can see why the makers of C18 have done this and , as has been noted by programmers here, they have provided the document AND the override to use at your discretion.
The topic "Integer promotion" explains why they kept constant literals as 8 bit.
I agree with 3V0....(even though I have my own issues with C18 ).
I can see why the makers of C18 have done this and , as has been noted by programmers here, they have provided the document AND the override to use at your discretion.
The topic "Integer promotion" explains why they kept constant literals as 8 bit.
I agree with 3V0....(even though I have my own issues with C18 ).