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!

0