aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/bbox.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-06-06 00:38:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-06-06 00:38:00 +0000
commit5b7631a4c17911168d60f886ffd651a51368afe7 (patch)
tree006b595a758635a40f2f9ab4dccef013267672f9 /Carpet/CarpetLib/src/bbox.cc
parentc8b67cb05e1f8055c642d35447665e2981ab4e32 (diff)
CarpetLib: Explicitly convert integer to type T in the bbox template
darcs-hash:20060606003856-dae7b-b1bbd7219113bee246898626c6652e1df5a8db65.gz
Diffstat (limited to 'Carpet/CarpetLib/src/bbox.cc')
-rw-r--r--Carpet/CarpetLib/src/bbox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/bbox.cc b/Carpet/CarpetLib/src/bbox.cc
index 4c98242f0..e26daf9c7 100644
--- a/Carpet/CarpetLib/src/bbox.cc
+++ b/Carpet/CarpetLib/src/bbox.cc
@@ -49,7 +49,7 @@ template<class T, int D>
T bbox<T,D>::size () const {
if (empty()) return 0;
// return prod((shape()+stride()-1)/stride());
- const vect<T,D> sh((shape()+stride()-1)/stride());
+ const vect<T,D> sh((shape()+stride()-T(1))/stride());
T sz = 1, max = numeric_limits<T>::max();
for (int d=0; d<D; ++d) {
assert (sh[d] <= max);