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

    function pointer cast

    user_14586677

      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.