From 430643ffa052f276f7c7ecb34b2e1966a943678e Mon Sep 17 00:00:00 2001 From: Mark Jenkinson <mark@fmrib.ox.ac.uk> Date: Thu, 18 Nov 2004 11:15:56 +0000 Subject: [PATCH] Explicit casts to avoid warnings --- cylsamp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cylsamp.cc b/cylsamp.cc index d352ab8..9864244 100644 --- a/cylsamp.cc +++ b/cylsamp.cc @@ -106,9 +106,9 @@ int do_work(int argc, char* argv[]) float r2 = r*r; float h=height.value(); int len=(int) (sqrt(r*r + h*h)) + 1; - int lenx = ceil(len/vsamp.xdim()); - int leny = ceil(len/vsamp.ydim()); - int lenz = ceil(len/vsamp.zdim()); + int lenx = (int) ceil(len/vsamp.xdim()); + int leny = (int) ceil(len/vsamp.ydim()); + int lenz = (int) ceil(len/vsamp.zdim()); if (verbose.value()) { cerr << "Performing Cylindrical Sampling" << endl; } for (int z=vsamp.minz(); z<=vsamp.maxz(); z++) { -- GitLab