summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-28 03:00:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-28 03:01:20 +0200
commit1c95c929734c3a6b12acf6bedeb81509e78b8279 (patch)
treef4b3cfbd643bdc37bdb05cf602181d8635ce78d1 /kstars
parentb2c30738278d21c4477cad6b473a652a20354add (diff)
downloadtdeedu-1c95c929734c3a6b12acf6bedeb81509e78b8279.tar.gz
tdeedu-1c95c929734c3a6b12acf6bedeb81509e78b8279.zip
Fix FTBFS with clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 191490e34508041a8bfab9535f7e65ee2c71b695)
Diffstat (limited to 'kstars')
-rw-r--r--kstars/kstars/fitsviewer.cpp8
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;
}