From 191490e34508041a8bfab9535f7e65ee2c71b695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jun 2015 03:00:11 +0200 Subject: Fix FTBFS with clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kstars/kstars/fitsviewer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'kstars') 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; } -- cgit v1.2.1