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

    ^_^

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

    ^_^

Children
No data