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

fix warning: hdunum int-long mismatch

parent 72d99b85
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,8 @@ void fits::header::open_fitsfile(std::string pathname, unsigned long hdunum, int
if ( !fits_open_file(&fptr, pathname.c_str(), iomode, &status) )
{
if( !fits_movabs_hdu(fptr, hdunum, NULL, &status) )
if(hdunum > INT_MAX) throw runtime_error("hdunum too big: " + to_string(hdunum));
if( !fits_movabs_hdu(fptr, (int)hdunum, NULL, &status) )
{
this->hdunum = hdunum;
int hdutype = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment