Skip to content
Snippets Groups Projects
Commit 6b259eff authored by Robert Butora's avatar Robert Butora
Browse files

cutout: fix warning for pixel coords (overlap calc rounding from double->long)

parent 898c87e5
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,9 @@ enum class timesystem {NONE, MJD_UTC};
struct uint_bounds
{
unsigned int pix1;
unsigned int pix2;
unsigned char type;
/*unsigned int*/ long pix1;
/*unsigned int*/ long pix2;
char type;
};
......
......@@ -151,13 +151,13 @@ std::vector<uint_bounds> calc_overlap(const std::string header, const coordinate
// FitsChan uses GRID Domain for FITS-pixel coords
if(dbl_range.x <= dbl_range.y)
{
uint_bounds ui_range{round(dbl_range.x), /*round*/(dbl_range.y), dbl_range.type};
uint_bounds ui_range{lround(dbl_range.x), lround(dbl_range.y), dbl_range.type};
uint_bounds_vec.push_back(ui_range);
LOG_STREAM << " " << ui_range;
}
else
{
uint_bounds ui_range{round(dbl_range.y), /*round*/(dbl_range.x), dbl_range.type};
uint_bounds ui_range{lround(dbl_range.y), lround(dbl_range.x), dbl_range.type};
uint_bounds_vec.push_back(ui_range);
LOG_STREAM << " " << ui_range;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment