summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-12-24 19:17:33 -0600
committerJohn Wiegley <johnw@newartisans.com>2014-12-24 19:17:33 -0600
commitd88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88 (patch)
tree5f58eb344204bfb0d62aee2408cfd999c1ca978f /src/global.cc
parent30d58f68138b286412beec3e797c71ad25d49ddb (diff)
parentf1478851ee3b8581215e5a017a51f3352bb874bf (diff)
downloadfork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.tar.gz
fork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.tar.bz2
fork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.zip
Merge pull request #346 from afh/pull/trace_level
Fix crash when using --trace 10 or above
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.cc b/src/global.cc
index a58bba54..e5a2f809 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -514,7 +514,7 @@ void handle_debug_options(int argc, char * argv[])
#if TRACING_ON
_log_level = LOG_TRACE;
try {
- _trace_level = boost::lexical_cast<uint8_t>(argv[i + 1]);
+ _trace_level = boost::lexical_cast<uint16_t>(argv[i + 1]);
}
catch (const boost::bad_lexical_cast&) {
throw std::logic_error(_("Argument to --trace must be an integer"));