diff --git a/deps/limonp/StdExtension.hpp b/deps/limonp/StdExtension.hpp index bc8abdb..e662172 100644 --- a/deps/limonp/StdExtension.hpp +++ b/deps/limonp/StdExtension.hpp @@ -29,6 +29,7 @@ using std::tr1::unordered_set; #include #include +#define print(x) std::cout << x << std::endl namespace std { diff --git a/deps/limonp/StringUtil.hpp b/deps/limonp/StringUtil.hpp index 3d8001e..7e54011 100644 --- a/deps/limonp/StringUtil.hpp +++ b/deps/limonp/StringUtil.hpp @@ -80,7 +80,7 @@ inline string& Lower(string& str) { inline bool IsSpace(unsigned c) { // when passing large int as the argument of isspace, it core dump, so here need a type cast. - return c > 0xff ? false : std::isspace(c & 0xff); + return c > 0xff ? false : std::isspace(c & 0xff) != 0; } inline std::string& LTrim(std::string &s) {