diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-28 04:54:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-28 04:54:54 -0400 |
commit | 38122c22241cb8fe64f0d17cd3b084418f49edaa (patch) | |
tree | 9383f2082602f2d71dde5328fa8bcf3f6609a5b7 /src/expr.cc | |
parent | fb129fa7a1b293d3a04513aee3ca4a489f094754 (diff) | |
download | fork-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/expr.cc')
-rw-r--r-- | src/expr.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expr.cc b/src/expr.cc index 2e96773b..20b52f71 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -92,7 +92,8 @@ void expr_t::parse(const string& _str, const uint32_t flags) { parser_t parser; str = _str; - ptr = parser.parse(str, flags); + ptr = parser.parse(str, parser_t::parse_flags_t + (static_cast<uint_least8_t>(flags))); context = NULL; compiled = false; } @@ -102,7 +103,8 @@ void expr_t::parse(std::istream& in, const uint32_t flags, { parser_t parser; str = "<stream>"; - ptr = parser.parse(in, flags, original_string); + ptr = parser.parse(in, parser_t::parse_flags_t + (static_cast<uint_least8_t>(flags)), original_string); context = NULL; compiled = false; } |