diff --git a/pvAccessApp/remote/channelSearchManager.cpp b/pvAccessApp/remote/channelSearchManager.cpp index 932cd9e..6675de7 100644 --- a/pvAccessApp/remote/channelSearchManager.cpp +++ b/pvAccessApp/remote/channelSearchManager.cpp @@ -562,7 +562,7 @@ void ChannelSearchManager::searchResponse(int32 cid, int32 seqNo, int8 minorRevi else { // minor hack to enable duplicate reports - si = reinterpret_cast(_context->getChannel(cid)); + si = dynamic_cast(_context->getChannel(cid)); if(si != NULL) { si->acquire(); // TODO not thread/destruction safe