From 5b7631a4c17911168d60f886ffd651a51368afe7 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 6 Jun 2006 00:38:00 +0000 Subject: CarpetLib: Explicitly convert integer to type T in the bbox template darcs-hash:20060606003856-dae7b-b1bbd7219113bee246898626c6652e1df5a8db65.gz --- Carpet/CarpetLib/src/bbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Carpet/CarpetLib/src/bbox.cc') 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 T bbox::size () const { if (empty()) return 0; // return prod((shape()+stride()-1)/stride()); - const vect sh((shape()+stride()-1)/stride()); + const vect sh((shape()+stride()-T(1))/stride()); T sz = 1, max = numeric_limits::max(); for (int d=0; d