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:
Przemyslaw Czerpak
2008-07-07 10:49:22 +00:00
parent d0596ffa2b
commit 12a91c6e12
2 changed files with 14 additions and 4 deletions

View File

@@ -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.

View File

@@ -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;