aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/mem.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-08-25 12:05:51 -0400
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:21:20 +0000
commit4bb95d670592995a182d64cb41da62e4c2ded95b (patch)
treecb28a3d515adeec4ed90618e2f80217966a0cc82 /Carpet/CarpetLib/src/mem.cc
parentf264200d9d15cd29124d3d286b751af4b2b811da (diff)
CarpetLib: Small change
Diffstat (limited to 'Carpet/CarpetLib/src/mem.cc')
-rw-r--r--Carpet/CarpetLib/src/mem.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/mem.cc b/Carpet/CarpetLib/src/mem.cc
index bb66c3b8f..a7c447ec3 100644
--- a/Carpet/CarpetLib/src/mem.cc
+++ b/Carpet/CarpetLib/src/mem.cc
@@ -97,7 +97,8 @@ mem<T>::
assert (not has_clients());
if (owns_storage_) {
delete [] storage_;
- total_allocated_bytes -= vectorlength_ * nelems_ * sizeof (T);
+ const double nbytes = vectorlength_ * nelems_ * sizeof (T);
+ total_allocated_bytes -= nbytes;
}
-- total_allocated_objects;
}