2005-10-05 15:05 UTC+0100 Ryszard Glab <rglab@imid.med.pl>

* source/common/expropt2.c
      * fixed bug in ASC() optimization (when character code > 127)
This commit is contained in:
Ryszard Glab
2005-10-05 12:57:22 +00:00
parent 410d3ac469
commit 252a1e65cb
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2005-10-05 15:05 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
* source/common/expropt2.c
* fixed bug in ASC() optimization (when character code > 127)
2005-10-05 03:08 UTC-0500 David Arturo Macias Corona <dmacias@mail.udg.mx>
* harbour/include/hbextern.ch

View File

@@ -1231,7 +1231,7 @@ BOOL hb_compExprReduceASC( HB_EXPR_PTR pSelf, HB_MACRO_DECL )
if( pArg->ExprType == HB_ET_STRING )
{
HB_EXPR_PTR pExpr = hb_compExprNewLong( pArg->value.asString.string[0] );
HB_EXPR_PTR pExpr = hb_compExprNewLong( (BYTE)pArg->value.asString.string[0] );
hb_compExprFree( pParms, HB_MACRO_PARAM );
hb_compExprFree( pSelf->value.asFunCall.pFunName, HB_MACRO_PARAM );