diff --git a/mat.h b/mat.h index 631e1aa..c808c9d 100644 --- a/mat.h +++ b/mat.h @@ -361,7 +361,7 @@ NRMat & NRMat::operator=(const NRMat &rhs) nn = rhs.nn; mm = rhs.mm; count = rhs.count; - if (count) (*count)--; + if (count) (*count)++; } return *this; } diff --git a/t.cc b/t.cc index 1e6d372..5504ec9 100644 --- a/t.cc +++ b/t.cc @@ -25,7 +25,7 @@ void f2(double *c) inline int randind(const int n) { -return int(random()/(1.+RAND_MAX)*n); + return int(random()/(1.+RAND_MAX)*n); } complex mycident (const complex&x) {return x;}