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

No error when converting unsigned char to pointer?

I just noticed that my Keil C compiler
doesn't flag assignment of an unsigned char
to a pointer as an error:

unsigned char xdata *src;
unsigned char xdata array[10];

src = array[0];
This doesn't seem to generate any compile
warning, even though what I should have done
is

src = &array[0];

Is this some known bug?

0