summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index ade5b6a1..ae3d0d46 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -408,7 +408,7 @@ int main(int argc, char * argv[], char * envp[])
#if defined(TRACING_ON)
if (i + 1 < argc && std::strcmp(argv[i], "--trace") == 0) {
ledger::_log_level = LOG_TRACE;
- ledger::_trace_level = std::atoi(argv[i + 1]);
+ ledger::_trace_level = lexical_cast<int>(argv[i + 1]);
i++;
}
#endif