Hi,

The original function is thus:

typedef void (*proc_C)(char * param);

HB_FUNC( CALL_PROC_C )
{   
   proc_C CurProc = (proc_C)hb_parnl(1);
   CurProc(hb_parc(2));
}

If I do this, just the WARNNING, but it's alright I do this, or I may have
future problems with the function?

HB_FUNC( CALL_PROC_C )
{   
   proc_C CurProc = (proc_C)hb_parnl(1);
   CurProc(hb_parnl(2));
}

thanks



Mindaugas Kavaliauskas wrote:
> 
> Hi,
> 
> 
> Ale SB wrote:
>> Warning W8075 G:\\FiveWin\\Fast_4.8.24\\FastRepH.prg 80: Suspicious
>> pointer
>> conversion in function HB_FUN_CALL_PROC_C
>> .
>> function is:
>> HB_FUNC( CALL_PROC_C )
>> {   
>>    proc_C CurProc = (proc_C)hb_parnl(1);
>>    CurProc(hb_parc(2));
>> 
>> How to solve?
> 
> Use pointer type for pointers instead of numeric.
> 
> 
> Regards,
> Mindaugas
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Suspicious-pointer-conversion-in-function...-tp26515244p26520134.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to