2 Replies Latest reply on Sep 26, 2012 6:57 AM by DaKn_263916

    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.




      Regards, Dana.