Loading tests/Support/Common.h +3 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ #include <sstream> #include <regex> #include <cmath> #include <limits> using namespace std; /** Loading Loading @@ -85,7 +87,7 @@ public: return stoi(lastInt); // Return the last matched float } catch (exception& ignored) { cerr << "I could not parse " << lastInt << " into an integer." << endl; return NAN; return numeric_limits<int>::min(); } } Loading Loading
tests/Support/Common.h +3 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ #include <sstream> #include <regex> #include <cmath> #include <limits> using namespace std; /** Loading Loading @@ -85,7 +87,7 @@ public: return stoi(lastInt); // Return the last matched float } catch (exception& ignored) { cerr << "I could not parse " << lastInt << " into an integer." << endl; return NAN; return numeric_limits<int>::min(); } } Loading