fixed use of reinterpret_cast to cast down the inheritance

hierarchy when static_cast is the correct way to do this
This commit is contained in:
Jeff Hill
2003-01-07 16:05:01 +00:00
parent 360204275e
commit c9a2188752

View File

@@ -36,7 +36,7 @@ caStatus casMonEvent::cbFunc ( casCoreClient & client )
//
// safe to cast because we have checked the type code
//
casMonitor * pMon = reinterpret_cast < casMonitor * >
casMonitor * pMon = static_cast < casMonitor * >
( client.lookupRes ( this->id, casMonitorT ) );
if ( ! pMon ) {
// we know this isnt an overflow event because those are