aboutsummaryrefslogtreecommitdiffstats
path: root/math/octave-forge-fits/files/patch-save__fits__image__multi__ext.cc
blob: fe43b29b3f81d21be67f38822a9b33892c827465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- save_fits_image_multi_ext.cc.orig	2015-06-11 11:19:38 UTC
+++ save_fits_image_multi_ext.cc
@@ -78,7 +78,7 @@ DEFUN_DLD( save_fits_image_multi_ext, args, nargout,
     else if( args(2).is_scalar_type() )
     {
       double val = args(2).double_value();
-      if( (D_NINT( val ) ==  val) )
+      if( (round( val ) ==  val) )
       {
         if( BYTE_IMG == val )
           bitperpixel = BYTE_IMG;