Problem 766

Summary: Typo in G4hLowEnergyIonisation.cc
Product: Geant4 Reporter: hans-herbert.fischer
Component: processes/electromagnetic/lowenergyAssignee: Vladimir.Ivantchenko
Status: RESOLVED FIXED    
Severity: normal CC: hans-herbert.fischer
Priority: P2    
Version: 7.0   
Hardware: PC   
OS: Windows   

Description hans-herbert.fischer 2005-07-07 05:44:58 CEST
Compiler MSVC++.NET emits warning:

src\G4hLowEnergyIonisation.cc(836) : warning C4552: '+' : operator has no
effect; expected operator with side-effect
    if(theBarkas && tscaled > highEnergy) {
        fBarkas =
-BarkasTerm(material,tscaled)*std::sqrt(chargeSquare)*chargeSquare;
                + BlochTerm(material,tscaled,chargeSquare);
    }

Indeed lines 835/836 are suspicious and the ";" in line 835 is probably bad.
Cheers Hans-Herbert
Comment 1 Vladimir.Ivantchenko 2005-10-02 23:41:59 CEST
Thanks! It is a typo. Fixed.
Comment 2 Maria.Grazia.Pia 2006-02-07 07:50:59 CET
*** Bug 819 has been marked as a duplicate of this bug. ***
*** 'Vladimir.Ivantchenko@cern.ch' will be responsible for bug 819. ***