2008-07-07 12:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/gencc.c
! fixed bud with wrong C code generated for doubly negated integer
values reported by Viktor.
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2008-07-07 12:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/compiler/gencc.c
|
||||
! fixed bud with wrong C code generated for doubly negated integer
|
||||
values reported by Viktor.
|
||||
|
||||
2008-07-07 06:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
|
||||
* make_deb.sh
|
||||
+ Added libgpm-dev to mouse test. Thanks Guy.
|
||||
|
||||
@@ -198,13 +198,18 @@ static int hb_gencc_checkNumAhead( LONG lValue, PFUNCTION pFunc, ULONG lPCodePos
|
||||
fprintf( cargo->yyc, "\tif( hb_xvmDivideByInt( %ld ) ) break;\n", lValue );
|
||||
return 1;
|
||||
|
||||
case HB_P_MINUS:
|
||||
if( lValue > 0 )
|
||||
{
|
||||
fprintf( cargo->yyc, "\tif( hb_xvmAddInt( -%ld ) ) break;\n", lValue );
|
||||
return 1;
|
||||
}
|
||||
lValue = -lValue;
|
||||
/* no break */
|
||||
|
||||
case HB_P_PLUS:
|
||||
fprintf( cargo->yyc, "\tif( hb_xvmAddInt( %ld ) ) break;\n", lValue );
|
||||
return 1;
|
||||
|
||||
case HB_P_MINUS:
|
||||
fprintf( cargo->yyc, "\tif( hb_xvmAddInt( -%ld ) ) break;\n", lValue );
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user