diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 9b749b959a..d819520cad 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-03-06 21:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/compiler/gencc.c + ! fixed wrongly used HB_LONG_{MAX,MIN} instead of LONG_{MAX,MIN}. + 2010-03-06 18:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbxvm.h * harbour/src/compiler/gencc.c diff --git a/harbour/src/compiler/gencc.c b/harbour/src/compiler/gencc.c index b50d187da3..cadcb66658 100644 --- a/harbour/src/compiler/gencc.c +++ b/harbour/src/compiler/gencc.c @@ -237,8 +237,8 @@ static int hb_gencc_checkNumAhead( HB_LONG lValue, PFUNCTION pFunc, HB_ULONG lPC fprintf( cargo->yyc, "\tif( hb_xvmAddInt( -%ld ) ) break;\n", lValue ); return 1; } -#if -HB_LONG_MAX > HB_LONG_MIN - else if( lValue < -HB_LONG_MAX ) +#if -LONG_MAX > LONG_MIN + else if( lValue < -LONG_MAX ) break; #endif lValue = -lValue;