diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 03:00:11 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-28 03:00:11 +0200 |
commit | 191490e34508041a8bfab9535f7e65ee2c71b695 (patch) | |
tree | 703896deb60e96370a787980a8bddb657e947be3 /kstars | |
parent | f17aa6a5367b70eec8fd3456fffe100bb87c551e (diff) | |
download | tdeedu-191490e34508041a8bfab9535f7e65ee2c71b695.tar.gz tdeedu-191490e34508041a8bfab9535f7e65ee2c71b695.zip |
Fix FTBFS with clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kstars')
-rw-r--r-- | kstars/kstars/fitsviewer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kstars/kstars/fitsviewer.cpp b/kstars/kstars/fitsviewer.cpp index a5e6143c..135c5cad 100644 --- a/kstars/kstars/fitsviewer.cpp +++ b/kstars/kstars/fitsviewer.cpp @@ -334,9 +334,13 @@ float * FITSViewer::loadData(const char *filename, float *buffer) case 32: for (int i=0; i < totalCount ; i++) { - FITS_GETBITPIX32(tempData, pixval_32); //pixval_32 = ntohl(pixval_32); - if (isnan(pixval_32)) pixval_32 = 0; + if (fits_nan_32(tempData)) { + pixval_32 = 0; + } + else { + FITS_GETBITPIX32(tempData, pixval_32); + } buffer[i] = pixval_32; tempData+=4; } |