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:
1 parent
360204275e
commit
c9a2188752
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user