Fix for ENUM_AS_BOOL problem reported by Coverity
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Sep 2010 14:51:55 +0000 (14:51 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Sep 2010 14:51:55 +0000 (14:51 +0000)
EMCAL/AliCaloCalibPedestal.cxx

index 1188312..165017d 100644 (file)
@@ -433,7 +433,7 @@ void AliCaloCalibPedestal::SetParametersFromFile(const char *parameterFile)
       s >> keyValue;
       
       // check stream status
-      if( s.rdstate() & ios::failbit ) break;
+      if( ( s.rdstate() & ios::failbit ) == ios::failbit) break;
                        
       // skip rest of line if comments found
       if( keyValue.substr( 0, 2 ) == "//" ) break;