Fixed a bug by missed () in HB_CHAR_SOFT1 compare.

This commit is contained in:
Antonio Carlos Pantaglione
2003-07-14 12:06:13 +00:00
parent cfa93d556b
commit 10a5ea3a9c
2 changed files with 14 additions and 10 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2003-07-14 09:10 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
* source/rtl/memoline.c
! Fixed a bug by missed () in HB_CHAR_SOFT1 compare.
2003-07-13 14:13 UTC-0400 Alejandro de Garate <alex_degarate@hotmail.com>
+ doc/es/gnulice.txt
+ doc/es/hvm.txt

View File

@@ -95,17 +95,17 @@ HB_FUNC( MEMOLINE )
break;
case HB_CHAR_LF:
if( !pszString[ ulPos - 1 ] == HB_CHAR_SOFT1 )
if( !( pszString[ ulPos - 1 ] == HB_CHAR_SOFT1 ) )
{
ulCurLength = 0;
ulLastSpace = 0;
ulLineEnd = ( ulPos >= OS_EOL_LEN ) ? ( ulPos - OS_EOL_LEN ) : ulLineBegin;
ulLines++;
if( ulLines < ulLineNumber )
{
ulLineBegin = ulPos + 1;
ulLineEnd = 0;
}
ulCurLength = 0;
ulLastSpace = 0;
ulLineEnd = ( ulPos >= OS_EOL_LEN ) ? ( ulPos - OS_EOL_LEN ) : ulLineBegin;
ulLines++;
if( ulLines < ulLineNumber )
{
ulLineBegin = ulPos + 1;
ulLineEnd = 0;
}
}
break;