From e352ba0534e383b4e2a267deff055a1c368c3f82 Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Thu, 16 Mar 2000 09:13:37 +0000 Subject: [PATCH] added a couple of casts --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/gt/gtpca.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index dae779b1d9..b8adcc92d1 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +20000316-04:10 EST Paul Tucker + * source/rtl/gt/gtpca.c + * added casts + 20000316-02:50 EST Paul Tucker * source/rtl/gtapi.c * removed extraneous ';' diff --git a/harbour/source/rtl/gt/gtpca.c b/harbour/source/rtl/gt/gtpca.c index aa9ac148ab..2549f26363 100644 --- a/harbour/source/rtl/gt/gtpca.c +++ b/harbour/source/rtl/gt/gtpca.c @@ -248,7 +248,7 @@ void hb_gt_Scroll( USHORT usTop, USHORT usLeft, USHORT usBottom, USHORT usRight, USHORT i; for( i = usTop; i <= usBottom; i++ ) { - hb_gt_Puts( i, usLeft, s_iAttribute, s_szSpaces, (usRight - usLeft ) + 1 ); + hb_gt_Puts( i, usLeft, s_iAttribute, ( BYTE * )s_szSpaces, (usRight - usLeft ) + 1 ); } } } @@ -303,7 +303,7 @@ void hb_gt_Puts( USHORT usRow, USHORT usCol, BYTE attr, BYTE * str, ULONG len ) str[ len ] = save; /* Update the cursor position */ s_usRow = usRow; - s_usCol = usCol + len; + s_usCol = usCol + ( USHORT )len; if( s_usCol > s_usMaxCol ) s_usCol = s_usMaxCol; }