diff --git a/harbour/contrib/libnf/descend.c b/harbour/contrib/libnf/descend.c index 6f3a29a270..45d04354d4 100644 --- a/harbour/contrib/libnf/descend.c +++ b/harbour/contrib/libnf/descend.c @@ -77,7 +77,7 @@ HB_FUNC( FT_DESCEND) { uiLen = hb_itemSize( iP ); - pDescend = hb_xgrab( uiLen ); + pDescend = ( char *) hb_xgrab( uiLen ); hb_itemCopyC( iP, pDescend, uiLen ); diff --git a/harbour/contrib/libnf/getenvrn.c b/harbour/contrib/libnf/getenvrn.c index 7e6de1d60d..e3c5797a20 100644 --- a/harbour/contrib/libnf/getenvrn.c +++ b/harbour/contrib/libnf/getenvrn.c @@ -141,7 +141,7 @@ HB_FUNC(FT_GETE) buffsize++; // now allocate that much memory and make sure 1st byte is a nul - buffer = hb_xalloc(buffsize); + buffer = ( char * ) hb_xalloc(buffsize); strcpy(buffer,"\0"); }