Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G4StatMFChannel * G4StatMFMicroPartition::ChooseZ(
- const G4double A0, const G4double Z0, const G4double MeanT)
- // Gives fragments charges
- {
- ....
- G4int ZBalance = 0;
- ....
- while (std::abs(ZBalance) > 1.1);
- }
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V674 The '1.1' literal of the 'double' type is compared to a value of the 'int' type. Consider inspecting the 'std::abs(ZBalance) > 1.1' expression. G4hadronic_deex_multifragmentation g4statmfmicropartition.cc 351
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment