summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 35fa0028..967e2f1b 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -65,7 +65,6 @@ namespace {
account_t * master;
const path * original_file;
accounts_map account_aliases;
- int current_year;
bool strict;
path pathname;
@@ -76,6 +75,8 @@ namespace {
std::size_t count;
std::size_t errors;
+ optional<date_t::year_type> current_year;
+
scoped_ptr<auto_xact_finalizer_t> auto_xact_finalizer;
instance_t(std::list<account_t *>& _account_stack,
@@ -476,7 +477,7 @@ void instance_t::nomarket_directive(char * line)
void instance_t::year_directive(char * line)
{
- current_year = lexical_cast<int>(skip_ws(line + 1));
+ current_year = lexical_cast<unsigned short>(skip_ws(line + 1));
}
void instance_t::option_directive(char * line)