From dfb9c1f010f7619d65218555fbae5c4bc10959cd Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Mon, 13 Jan 2020 21:29:26 +0800 Subject: [PATCH] Upgrade [limonp](https://github.com/yanyiwu/limonp) -> v0.6.1 --- deps/limonp/StdExtension.hpp | 1 + deps/limonp/StringUtil.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) {