summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-21 02:08:49 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-21 02:10:02 -0400
commita93111470d54e6345617b51fcc939f306854a524 (patch)
tree8a514e7f3d696ba6134907f7296c370c55a1811e /src/textual.cc
parent4ff8087815c9d93447ddb1651fa3ec8b82bba9be (diff)
downloadfork-ledger-a93111470d54e6345617b51fcc939f306854a524.tar.gz
fork-ledger-a93111470d54e6345617b51fcc939f306854a524.tar.bz2
fork-ledger-a93111470d54e6345617b51fcc939f306854a524.zip
Greatly improved the way "weeks" are iterated
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc
index eec3be61..b3fb2f2e 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -512,7 +512,7 @@ void instance_t::nomarket_directive(char * line)
void instance_t::year_directive(char * line)
{
- current_year = std::atoi(skip_ws(line + 1));
+ current_year = lexical_cast<int>(skip_ws(line + 1));
}
void instance_t::option_directive(char * line)