function pointer cast | Cypress Semiconductor
function pointer cast
Hi, I have the following problem -
void dispfunc( signed long * dispval);
I want to call it with -
unsigned long testval = 0;
dispfunc( &testval );
Compiler, HiTech, warns illegal conversion bewteen pointer types. I would
have thought a signed and unsigned long ptr no different.
I tried various casts, cannot get it to work.