Created
March 5, 2023 18:39
-
-
Save smooker/973d0976bd972da9ed471af724bb03eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc | |
index 23bd6b385..6db943bce 100644 | |
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc | |
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc | |
@@ -17,6 +17,9 @@ | |
#include "float.hh" | |
#include "address.hh" | |
+#include <limits.h> | |
+#include <limits> | |
+ | |
#include <cmath> | |
using std::ldexp; | |
using std::frexp; | |
@@ -28,6 +31,7 @@ using std::floor; | |
using std::ceil; | |
using std::round; | |
using std::fabs; | |
+using std::numeric_limits; | |
/// Set format for a given encoding size according to IEEE 754 standards | |
/// \param sz is the size of the encoding in bytes | |
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/float.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/float.hh | |
index fff9075f1..99b238b0e 100644 | |
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/float.hh | |
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/float.hh | |
@@ -20,6 +20,7 @@ | |
#define __CPUI_FLOATFORMAT__ | |
#include "xml.hh" | |
+#include <limits.h> //smooker | |
/// \brief Encoding information for a single floating-point format | |
/// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment