From 5eae404fc464674870a73b607a5bdcd8665be27e Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 9 Aug 2013 20:11:39 +0800 Subject: forget to return in `str_to_lower` --- parser.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3-70-g09d2