Fix build error after 8b442ea

> Task :Decompiler:compileSleighLinux_x86_64ExecutableSleighCpp
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc: In member function ???double FloatFormat::getHostFloat(uintb, floatclass*) const???:
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:30: error: ???numeric_limits??? is not a member of ???std???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                              ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:45: error: expected primary-expression before ???double???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                                             ^~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:23: error: ???numeric_limits??? is not a member of ???std???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                       ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:38: error: expected primary-expression before ???double???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                                      ^~~~~~

> Task :Decompiler:compileDecompileLinux_x86_64ExecutableDecompileCpp
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc: In member function ???double FloatFormat::getHostFloat(uintb, floatclass*) const???:
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:30: error: ???numeric_limits??? is not a member of ???std???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                              ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:45: error: expected primary-expression before ???double???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                                             ^~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:23: error: ???numeric_limits??? is not a member of ???std???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                       ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:38: error: expected primary-expression before ???double???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                                      ^~~~~~
This commit is contained in:
Johannes Obermayr 2023-01-21 23:16:51 +01:00
parent ba0b42dc82
commit c839c0f9a3

View file

@ -18,6 +18,7 @@
#include "address.hh" #include "address.hh"
#include <cmath> #include <cmath>
#include <limits>
using std::ldexp; using std::ldexp;
using std::frexp; using std::frexp;
using std::signbit; using std::signbit;