Quote:
|
Originally Posted by 10intheCrunch
Where's the option for making chars unsigned by default? Does that affect ints and longs as well?
|
You set compiler flags in MPLAB
Project->Build Options...->Project
under tab "MPLAB C18"
There is a quick radio button for treating "char" as unsigned and one for forcing all calculations to be performed at least as int rather than the smallest type included in the calculation.
You can also enter your own flags by clicking on "Use Alternate Settings" and typing into the box that becomes enabled. You'll find the available compiler flags documented in the MPLAB C18 C Compiler User's Guide that came on the MPLAB installation CD, Appendix C. e.g., -k is the flag for treating char as unsigned. When you click on the radio button you'll see "-k" appear in the "Inherit global settings" window.