summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
commit38122c22241cb8fe64f0d17cd3b084418f49edaa (patch)
tree9383f2082602f2d71dde5328fa8bcf3f6609a5b7 /src/global.cc
parentfb129fa7a1b293d3a04513aee3ca4a489f094754 (diff)
downloadfork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.gz
fork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.bz2
fork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.zip
Corrected warnings g++-4.3.3 was complaining about
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 c4b47b30..22bd5b7b 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -513,7 +513,7 @@ void handle_debug_options(int argc, char * argv[])
_log_level = LOG_TRACE; // global in utils.h
try {
// global in utils.h
- _trace_level = boost::lexical_cast<int>(argv[i + 1]);
+ _trace_level = boost::lexical_cast<uint8_t>(argv[i + 1]);
}
catch (const boost::bad_lexical_cast& e) {
throw std::logic_error(_("Argument to --trace must be an integer"));