diff options
author | Aaron LI <aly@aaronly.me> | 2018-10-09 13:11:42 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-10-09 13:14:32 +0800 |
commit | a9ef270e9b752c339e582eed3ae4b29005cf91ad (patch) | |
tree | 504ddb4d8f5a85343e20dc841a918063d18c50f1 | |
parent | af032db052faaa99fc0894ba3128c540a46012e5 (diff) | |
download | chandra-acis-analysis-a9ef270e9b752c339e582eed3ae4b29005cf91ad.tar.bz2 |
src/{v,}chisq: Fix uninitialized variables
-rw-r--r-- | src/chisq.hpp | 2 | ||||
-rw-r--r-- | src/vchisq.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/chisq.hpp b/src/chisq.hpp index 0e58200..a77e882 100644 --- a/src/chisq.hpp +++ b/src/chisq.hpp @@ -47,7 +47,6 @@ namespace opt_utilities private:
bool verb;
bool limit_bound;
- int n;
statistic<Ty,Tx,Tp,Ts,Tstr>* do_clone()const
{
@@ -100,6 +99,7 @@ namespace opt_utilities std::vector<float> vye2;
std::vector<float> my;
float xmin=1e99,xmax=-1e99,ymin=1e99,ymax=-1e99;
+ int n=0;
if(verb)
{
n++;
diff --git a/src/vchisq.hpp b/src/vchisq.hpp index 8cd8481..034086e 100644 --- a/src/vchisq.hpp +++ b/src/vchisq.hpp @@ -26,7 +26,6 @@ namespace opt_utilities {
private:
bool verb;
- int n;
bool limit_bound;
typedef std::vector<T> Tp;
@@ -75,6 +74,7 @@ namespace opt_utilities std::vector<float> vye;
std::vector<float> my;
float x1=1e99,x2=-1e99,y1=1e99,y2=-1e99;
+ int n=0;
if(verb)
{
n++;
|