* contrib/libnf/numlock.c

* Add {} to avoid ambiguous if-else.
This commit is contained in:
Walter Negro
2002-04-15 04:35:29 +00:00
parent eb15e017ea
commit ce051aa825

View File

@@ -80,17 +80,17 @@
HB_FUNC(FT_NUMLOCK)
{
#if defined(HB_OS_DOS)
{
hb_retl( ( int ) ( status_byte & 0x20 ) );
if ( PCOUNT )
if ( hb_pcount() )
{
if ( ISLOG(1) )
status_byte = ( status_byte | 0x20 );
else
status_byte = ( status_byte & 0xDF );
return;
}
return;
#endif
}