diff libinterp/corefcn/pr-output.cc @ 32857:00e493a27de2

Deprecate lo_ieee_ functions that are part of C99 or C++11. * lo-ieee.h (__lo_ieee_isnan, __lo_ieee_isfinite, __lo_ieee_isinf, __lo_ieee_signbit, __lo_ieee_float_isnan, __lo_ieee_float_isfinite, __lo_ieee_float_isinf, __lo_ieee_float_signbit): Mark functions as deprecated. * lo-ieee.cc, mex.cc, oct-stream.cc, pr-output.cc, ov-complex.h, ov-float.h, ov-flt-complex.h, ov-scalar.h, dSparse.h, Faddeeva.cc, lo-mappers.cc, oct-norm.cc, randgamma.cc, randpoisson.cc, lo-utils.cc: Avoid using deprecated functions.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 25 Jan 2024 20:15:37 +0100
parents 4b601ca024d5
children 49128bdb9eb2
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc	Fri Jan 26 08:40:11 2024 +0100
+++ b/libinterp/corefcn/pr-output.cc	Thu Jan 25 20:15:37 2024 +0100
@@ -1546,7 +1546,7 @@
   if (! bank_format)
     {
       T i = cval.imag ();
-      if (! (hex_format || bit_format) && lo_ieee_signbit (i))
+      if (! (hex_format || bit_format) && std::signbit (i))
         {
           os << " - ";
           i = -i;