Hi, I think this "incompatible pointer types" warning is a false warning from the compiler because the manual shows unsigned long and unsigned int as the same data type, but I want to ask to be certain.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, I think this "incompatible pointer types" warning is a false warning from the compiler because the manual shows unsigned long and unsigned int as the same data type, but I want to ask to be certain.
HI Bryan,
This warning is just automatically generated because depending on the system Unsigned and long may not be the same size.
Like you said, here you should be fine because the datatypes are both pointers to 32-bit values. Typically though I just try to avoid this by using the standard datatypes that specify size exclusively.
Best Regards,
Brandon Fisher
Or at the very least use a cast and comment to show future maintainers that you know what is going on.