------------------------------------------- #define uchar unsigned char uchar xdata lcd_show_buf[20]; uchar num; num = 2; sprintf(lcd_show_buf, "%4d", num); ------------------------------------------- use pc-lint , get the following error: Error 64: Type mismatch (arg. no. 1) (ptrs to signed/unsigned) I just want to know how to avoid such errors? Thank u!
"I didn't find the ANSI integer promotion switch" It's on the 'C51' tab in the uVision Project Options - on the right-hand side, just above the 'Include Paths' box. See p80 in the uVision Getting Started guide (02.2001 version). BTW: As you have support until March 2016(!!), why not upgrade to the current version?
to Andy Neil: Oh yes, I find it!Thank u for your detailed reply! Any latest version of certain software,as you know ,will have serval buggs hidden it.Some of them may be vital. I just wait for it until it is relatively perfect. Thank u ,any way. Thank u ,all . ^_^