This commit is contained in:
yanyiwu 2020-01-13 21:29:26 +08:00
parent 79ffd00979
commit dfb9c1f010
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ using std::tr1::unordered_set;
#include <fstream>
#include <sstream>
#define print(x) std::cout << x << std::endl
namespace std {

View File

@ -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) {