diff options
Diffstat (limited to '002test.cc')
-rw-r--r-- | 002test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/002test.cc b/002test.cc index 776e78e9..72f083bb 100644 --- a/002test.cc +++ b/002test.cc @@ -82,7 +82,7 @@ bool is_number(const string& s) { return s.find_first_not_of("0123456789-.") == string::npos; } -long long int to_int(string n) { +long long int to_number(string n) { char* end = NULL; long long int result = strtoll(n.c_str(), &end, /*any base*/0); assert(*end == '\0'); |