This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

why get error "Type mismatch (arg. no. 1) (ptrs to signed/unsigned)"?

-------------------------------------------
#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!

Parents
  • "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?

Reply
  • "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?

Children
  • 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 .

    ^_^