coverity fix for 15971
authormvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jan 2011 10:44:25 +0000 (10:44 +0000)
committermvala <mvala@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jan 2011 10:44:25 +0000 (10:44 +0000)
ANALYSIS/EventMixing/AliMixInputEventHandler.cxx

index 7f66a83..c97565f 100644 (file)
@@ -318,7 +318,7 @@ Bool_t AliMixInputEventHandler::MixBuffer()
    Int_t counter = 0;
    AliInputEventHandler *eh = 0;
    TObjArrayIter next(&fInputHandlers);
-   while ((eh = (AliInputEventHandler *) next())) {
+   while ((eh = dynamic_cast<AliInputEventHandler *> (next()))) {
       if (!eh) continue;
       if (fEventPool && fEventPool->GetListOfEventCuts()->GetEntries() > 0) {
          entryMix = -1;