Commit 58f79bb8 authored by Lynn Garren's avatar Lynn Garren

get rid of some new warnings from GenericFunctions

parent 00e7b2a4
2012-02-02 Lynn Garren <garren@fnal.gov>
* GenericFunctions/GenericFunctions/ClassicalSolver.hh: make destructor virtual
* GenericFunctions/src/PhaseSpace.cc: fix typo,
GenFun::Variable index() returns unsigned int, not double
* GenericFunctions/src/InterpolatingPolynomial.cc: deal with int comparison
2012-02-02 Lynn Garren <garren@fnal.gov>
* Vector, Geometry, Random, Matrix, Exceptions :
......
2012-02-02 Lynn Garren <garren@fnal.gov>
* GenericFunctions/ClassicalSolver.hh: make destructor virtual
* src/PhaseSpace.cc: fix typo,
GenFun::Variable index() returns unsigned int, not double
* src/InterpolatingPolynomial.cc: deal with int comparison
==============================
16.12.11 Release CLHEP-2.1.2.0
==============================
......
......@@ -33,7 +33,7 @@ namespace Classical {
//
// Destructor:
//
~Solver(){};
virtual ~Solver(){};
//
// Returns the time evolution for a variable (q_i or p_i)
//
......
......@@ -48,7 +48,7 @@ namespace Genfun {
d[i]=hp*den;
c[i]=ho*den;
}
deltay = 2*(ns+1) < (_K-m-1) ? c[ns+1]: d[ns--];
deltay = 2*(ns+1) < (int)(_K-m-1) ? c[ns+1]: d[ns--];
y += deltay;
}
return y;
......
......@@ -73,7 +73,7 @@ namespace Classical {
void PhaseSpace::start (const Genfun::Variable & v, double value){
double index =v.index();
unsigned int index =v.index();
if (index<DIM) {
_q0[index] = value;
}
......@@ -85,7 +85,7 @@ namespace Classical {
double PhaseSpace::startValue(const Genfun::Variable & v) const {
double index =v.index();
unsigned int index =v.index();
if (index<DIM) {
return _q0[index];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment