Commit 9dd56105 authored by Lynn Garren's avatar Lynn Garren

a couple of fixes for older compilers

parent b5701995
2014-11-21 Lynn Garren <garren@fnal.gov>
* Utility/Utility/memory.h: fix a type mismatch
* GenericFunctions/src/DefiniteIntegral.cc: explicit initialization
2014-11-20 Lynn Garren <garren@fnal.gov>
* Random/src/RanshiEngine.cc: use a pragma to ignore aggressive 32bit compiler warnings
......
2014-11-21 Lynn Garren <garren@fnal.gov>
* src/DefiniteIntegral.cc: explicit initialization
==============================
18.08.14 Release CLHEP-2.2.0.3
==============================
......
......@@ -168,7 +168,7 @@ namespace Genfun {
s[j]=rule->integrate(function, c->a, c->b, j);
c->nFunctionCalls=rule->numFunctionCalls();
if (j>=c->K) {
double ss, dss;
double ss(0.), dss(0.);
c->polint(h.begin()+j-c->K,s.begin()+j-c->K,0.0,ss, dss);
if (fabs(dss) <= c->EPS*fabs(ss)) {
delete rule;
......
2014-11-21 Lynn Garren <garren@fnal.gov>
* Utility/memory.h: fix a type mismatch
==============================
18.08.14 Release CLHEP-2.2.0.3
==============================
......
......@@ -154,7 +154,7 @@ bool
abstract_ctrl_block::add_ref_lock() // true on success
{
class_invariant();
return n_shared_ptrs ? ++n_shared_ptrs : false;
return n_shared_ptrs ? (++n_shared_ptrs != 0) : false;
}
void
......
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