From 9d6a0047122cd335b07d2cb0298286fcc228b7e2 Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Thu, 18 Sep 2003 08:04:22 +0000 Subject: [PATCH] some typecastings required for MSVC --- harbour/source/rdd/dbfcdx/dbfcdx1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harbour/source/rdd/dbfcdx/dbfcdx1.c b/harbour/source/rdd/dbfcdx/dbfcdx1.c index 7a37aff920..7dcd7b0c99 100644 --- a/harbour/source/rdd/dbfcdx/dbfcdx1.c +++ b/harbour/source/rdd/dbfcdx/dbfcdx1.c @@ -973,9 +973,9 @@ static void hb_xfptReadItemSx( FHANDLE hMemoFile, PHB_ITEM pItem ) case 0x0400 : /* CLIP_IT_CHAR */ ulLen = *(short *)(&itmBuffer[2]); /* only 2 bytes for SIX compatibility */ - pStr = (char *) hb_xgrab( ulLen + 1 ); + pStr = ( BYTE * ) hb_xgrab( ulLen + 1 ); hb_fsRead( hMemoFile, pStr, ulLen ); - hb_itemPutCPtr( pItem, pStr, ulLen ); + hb_itemPutCPtr( pItem, ( char * ) pStr, ulLen ); break; //#define CLIP_IT_BLOCK 0x1000 @@ -1256,7 +1256,7 @@ static SHORT hb_cdxKeyFindDup( LPCDXKEYINFO pKey1, LPCDXKEYINFO pKey2 ) if ( pKey2 != NULL ) { int iLimit = (pKey1->length > pKey2->length) ? pKey2->length : pKey1->length; - while ( usDup < iLimit && ( (BYTE) pKey1->Value[ usDup ] ) == + while ( usDup < iLimit && ( (BYTE) pKey1->Value[ usDup ] ) == ( (BYTE) pKey2->Value[ usDup ] ) ) { usDup++;