aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-09 20:11:39 +0800
committerTeddy <[email protected]>2013-08-09 20:11:39 +0800
commit5eae404fc464674870a73b607a5bdcd8665be27e (patch)
tree409d7c57305226bdd13779e2553d424556eb9517
parent146c9247eddf2b601a7e9e71c472912f5a7faf61 (diff)
forget to return in `str_to_lower`
-rw-r--r--parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.cpp b/parser.cpp
index a00f3f4..b27a8dc 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -48,6 +48,7 @@ string str_to_lower(string str) {
for (size_t i = 0; i < len; i++)
if ('A' <= str[i] && str[i] <= 'Z')
str[i] -= 'A' - 'a';
+ return str;
}
bool Tokenizor::get_token(string &ret) {