From 421371a395ac55a6edadfc393ead1f4ca030d020 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 8 Nov 2006 12:39:15 +0000 Subject: [PATCH] 2006-11-08 13:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/pp/ppcore.c * cleaned two warnings generated by old GCC versions --- harbour/ChangeLog | 4 ++++ harbour/source/pp/ppcore.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 33bda71e9e..8f380519ab 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ + +2006-11-08 17:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/vm/classes.c + ! fixed type checking for "string" type. It should be translate to character not symbol item type. 2006-11-08 13:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) diff --git a/harbour/source/pp/ppcore.c b/harbour/source/pp/ppcore.c index 2ef387f0eb..2400e30bf6 100644 --- a/harbour/source/pp/ppcore.c +++ b/harbour/source/pp/ppcore.c @@ -1007,7 +1007,7 @@ static void hb_pp_getLine( PHB_PP_STATE pState ) ul = 0; } } - while( ( pState->pFile->pLineBuf ? pState->pFile->ulLineBufLen : + while( ( pState->pFile->pLineBuf ? pState->pFile->ulLineBufLen != 0 : !pState->pFile->fEof ) && ( pState->fCanNextLine || ( pState->iStreamDump && pState->iStreamDump != HB_PP_STREAM_CLIPPER ) ) ); @@ -3879,7 +3879,7 @@ static void hb_pp_preprocesToken( PHB_PP_STATE pState ) if( !pState->pFile->pTokenList ) { - while( pState->pFile->pLineBuf ? pState->pFile->ulLineBufLen : + while( pState->pFile->pLineBuf ? pState->pFile->ulLineBufLen != 0 : !pState->pFile->fEof ) { hb_pp_getLine( pState );