use enum for enumerated variable

This commit is contained in:
Jeff Hill
2002-08-21 16:25:14 +00:00
parent a3b726f105
commit cbb652bcce

View File

@@ -61,7 +61,7 @@ inline void casPVI::unregisterIO()
//
inline caStatus casPVI::bestDBRType ( unsigned &dbrType ) // X aCC 361
{
unsigned bestAIT = this->bestExternalType ();
aitEnum bestAIT = this->bestExternalType ();
if ( bestAIT < NELEMENTS ( gddAitToDbr ) && bestAIT != aitEnumInvalid ) {
dbrType = gddAitToDbr[bestAIT];