type cast to avoid a msvc error

This commit is contained in:
Antonio Linares
2001-11-01 14:09:47 +00:00
parent b6f9292950
commit 17cff005da

View File

@@ -2399,7 +2399,8 @@ HB_FUNC( __CLSGETPROPERTIES )
{
PHB_DYNS pMessage = ( PHB_DYNS ) pClass->pMethods[ uiAt ].pMessage;
if( pMessage && ( pClass->pMethods[ uiAt ].bIsPersistent == TRUE ) ) /* Hash Entry used ? */
if( ( pMessage != NULL ) &&
( pClass->pMethods[ uiAt ].bIsPersistent == ( BOOL ) TRUE ) ) /* Hash Entry used ? */
{
PHB_ITEM pItem = hb_itemPutC( NULL, pMessage->pSymbol->szName );
/* Add to array */
@@ -2410,4 +2411,4 @@ HB_FUNC( __CLSGETPROPERTIES )
}
hb_itemRelease( hb_itemReturn( pReturn ) );
}
}