From b2c71021a73d4feb12c6940a5cc8bc1ef9a8039c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 24 Nov 2010 16:11:21 +0000 Subject: [PATCH] 2010-11-24 17:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * src/rdd/dbfntx/dbfntx1.c * src/rdd/dbfnsx/dbfnsx1.c * src/rdd/dbfcdx/dbfcdx1.c * src/rdd/dbffpt/dbffpt1.c ! Casts for msvc. --- harbour/ChangeLog | 7 +++++++ harbour/src/rdd/dbfcdx/dbfcdx1.c | 6 +++--- harbour/src/rdd/dbffpt/dbffpt1.c | 2 +- harbour/src/rdd/dbfnsx/dbfnsx1.c | 2 +- harbour/src/rdd/dbfntx/dbfntx1.c | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e0243f6903..3941675d23 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,13 @@ The license applies to all entries newer than 2009-04-28. */ +2010-11-24 17:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * src/rdd/dbfntx/dbfntx1.c + * src/rdd/dbfnsx/dbfnsx1.c + * src/rdd/dbfcdx/dbfcdx1.c + * src/rdd/dbffpt/dbffpt1.c + ! Casts for msvc. + 2010-11-24 16:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbhttpd/core.prg * contrib/hbhttpd/widgets.prg diff --git a/harbour/src/rdd/dbfcdx/dbfcdx1.c b/harbour/src/rdd/dbfcdx/dbfcdx1.c index 71c5738387..388c12ac40 100644 --- a/harbour/src/rdd/dbfcdx/dbfcdx1.c +++ b/harbour/src/rdd/dbfcdx/dbfcdx1.c @@ -261,7 +261,7 @@ static void hb_cdxMakeSortTab( CDXAREAP pArea ) } } while( j != l ); for( i = 0; i <= 255; i++ ) - pArea->bCdxSortTab[ pbSort[i] ] = i; + pArea->bCdxSortTab[ pbSort[i] ] = ( HB_BYTE ) i; hb_xfree( pbSort ); } } @@ -1737,7 +1737,7 @@ static void hb_cdxSetLeafRecord( HB_BYTE *pDst, HB_ULONG ulRec, int iDup, int iT int i; HB_USHORT usBit; - usBit = ( ( iTrl << iDCbits ) | iDup ) << ( 16 - iTCbits - iDCbits ); + usBit = ( HB_USHORT ) ( ( ( iTrl << iDCbits ) | iDup ) << ( 16 - iTCbits - iDCbits ) ); for( i = 0; i < iReq; i++, ulRec >>= 8 ) { if( i < iReq - 2 ) @@ -9944,7 +9944,7 @@ HB_FUNC( DBFCDX_GETFUNCTABLE ) puiCount = ( HB_USHORT * ) hb_parptr( 1 ); pTable = ( RDDFUNCS * ) hb_parptr( 2 ); - uiRddId = hb_parni( 4 ); + uiRddId = ( HB_USHORT ) hb_parni( 4 ); puiSuperRddId = ( HB_USHORT * ) hb_parptr( 5 ); HB_TRACE(HB_TR_DEBUG, ("DBFCDX_GETFUNCTABLE(%p, %p)", puiCount, pTable)); diff --git a/harbour/src/rdd/dbffpt/dbffpt1.c b/harbour/src/rdd/dbffpt/dbffpt1.c index 6bc14bf033..ddf595160b 100644 --- a/harbour/src/rdd/dbffpt/dbffpt1.c +++ b/harbour/src/rdd/dbffpt/dbffpt1.c @@ -4006,7 +4006,7 @@ static HB_ERRCODE hb_fptCreateMemFile( FPTAREAP pArea, LPDBOPENINFO pCreateInfo hb_itemRelease( pItem ); return HB_FAILURE; } - pArea->bMemoType = hb_itemGetNI( pItem ); + pArea->bMemoType = ( HB_BYTE ) hb_itemGetNI( pItem ); /* if( !pArea->bMemoType ) { diff --git a/harbour/src/rdd/dbfnsx/dbfnsx1.c b/harbour/src/rdd/dbfnsx/dbfnsx1.c index 2a6f68d319..a834f00f94 100644 --- a/harbour/src/rdd/dbfnsx/dbfnsx1.c +++ b/harbour/src/rdd/dbfnsx/dbfnsx1.c @@ -8180,7 +8180,7 @@ HB_FUNC( DBFNSX_GETFUNCTABLE ) puiCount = ( HB_USHORT * ) hb_parptr( 1 ); pTable = ( RDDFUNCS * ) hb_parptr( 2 ); - uiRddId = hb_parni( 4 ); + uiRddId = ( HB_USHORT ) hb_parni( 4 ); puiSuperRddId = ( HB_USHORT * ) hb_parptr( 5 ); if( pTable ) diff --git a/harbour/src/rdd/dbfntx/dbfntx1.c b/harbour/src/rdd/dbfntx/dbfntx1.c index d4abdb10f4..e58cd4f877 100644 --- a/harbour/src/rdd/dbfntx/dbfntx1.c +++ b/harbour/src/rdd/dbfntx/dbfntx1.c @@ -7859,7 +7859,7 @@ HB_FUNC( DBFNTX_GETFUNCTABLE ) puiCount = ( HB_USHORT * ) hb_parptr( 1 ); pTable = ( RDDFUNCS * ) hb_parptr( 2 ); - uiRddId = hb_parni( 4 ); + uiRddId = ( HB_USHORT ) hb_parni( 4 ); puiSuperRddId = ( HB_USHORT * ) hb_parptr( 5 ); if( pTable )