ports/math/octave-forge-fits/files/patch-save__fits__image.cc
Stephen Montgomery-Smith 7db1dd68fc - Resurrect math/octave-forge-fits. Add patches so it builds. Bump portrevision.
- Default option FITS to on in math/octave-forge.  Bump portrevision.
2019-10-24 14:44:48 +00:00

11 lines
376 B
C++

--- save_fits_image.cc.orig 2015-06-11 11:19:38 UTC
+++ save_fits_image.cc
@@ -81,7 +81,7 @@ DEFUN_DLD( save_fits_image, 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;