2001-10-23 14:10 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2001-10-23 10:07:40 +00:00
parent 131f0419da
commit 7e314697f0
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2001-10-23 14:10 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
! source/rdd/dbfntx1.c
! fixed support of numeric indexes for negative numbers
2001-10-22 07:20 GMT -3 Luiz Rafael Culik<culik@sl.conex.net>
*makefile.bc
* removed -b option from hbmake

View File

@@ -171,6 +171,14 @@ static char * numToStr( PHB_ITEM pItem, char* szBuffer, USHORT length, USHORT de
dec, hb_itemGetND( pItem ) );
}
szBuffer[ length ] = 0;
if( hb_itemGetND( pItem ) < 0 )
{
char *ptr = szBuffer;
*ptr++ = ',';
for( ;*ptr;ptr++ )
if( *ptr >= '0' && *ptr <= '9' )
*ptr = (char) ( 92 - (int)*ptr );
}
return szBuffer;
}