From 683aecc0e5a902a203af2408050b661b3f7ea079 Mon Sep 17 00:00:00 2001 From: Jean-Francois Lefebvre Date: Sun, 27 Oct 2002 20:41:36 +0000 Subject: [PATCH] 2002-10-27 21:35 UTC+0100 J-F lefebvre --- harbour/ChangeLog | 5 +++++ harbour/source/rdd/dbf1.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ac31a39684..0ec8c64fd1 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2002-10-27 21:35 UTC+0100 J-F lefebvre + * source/rdd/dbf1.c + * added missing typecasting for msvc. + + 2002-10-27 10:28 UTC+0200 Chen Kedem * doc/en/lang.txt + Added Russian KIO-8 to HB_LANGSELECT() list of supported ID's diff --git a/harbour/source/rdd/dbf1.c b/harbour/source/rdd/dbf1.c index 2fa6a98a42..9fd56dd806 100644 --- a/harbour/source/rdd/dbf1.c +++ b/harbour/source/rdd/dbf1.c @@ -1246,7 +1246,7 @@ ERRCODE hb_dbfPutValue( DBFAREAP pArea, USHORT uiIndex, PHB_ITEM pItem ) memcpy( pArea->pRecord + pArea->pFieldOffset[ uiIndex ], hb_itemGetCPtr( pItem ), uiSize ); if( HB_IS_STRING( pItem ) ) - hb_cdpnTranslate( pArea->pRecord + pArea->pFieldOffset[ uiIndex ], s_cdpage, pArea->cdPage, uiSize ); + hb_cdpnTranslate( (char *) pArea->pRecord + pArea->pFieldOffset[ uiIndex ], s_cdpage, pArea->cdPage, uiSize ); memset( pArea->pRecord + pArea->pFieldOffset[ uiIndex ] + uiSize, ' ', pField->uiLen - uiSize ); } @@ -1745,7 +1745,7 @@ ERRCODE hb_dbfOpen( DBFAREAP pArea, LPDBOPENINFO pOpenInfo ) ( ( PHB_DYNS ) pArea->atomAlias )->hArea = pOpenInfo->uiArea; if( pOpenInfo->cdpId ) { - pArea->cdPage = hb_cdpFind( pOpenInfo->cdpId ); + pArea->cdPage = hb_cdpFind( (char *) pOpenInfo->cdpId ); if( !pArea->cdPage ) pArea->cdPage = s_cdpage; }