diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-03 14:51:11 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-03 14:51:11 -0500 |
commit | 1ef2274b3f48c081c73d1a6b13197a55668d1713 (patch) | |
tree | 702571d987720a15a05d58fadc4ef66575e81e1d /src/commodity.h | |
parent | 3437f6ae916f8c85d9a6454cfac1e63ef32b56a4 (diff) | |
download | fork-ledger-1ef2274b3f48c081c73d1a6b13197a55668d1713.tar.gz fork-ledger-1ef2274b3f48c081c73d1a6b13197a55668d1713.tar.bz2 fork-ledger-1ef2274b3f48c081c73d1a6b13197a55668d1713.zip |
Fixed a compiler warning
Diffstat (limited to 'src/commodity.h')
-rw-r--r-- | src/commodity.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commodity.h b/src/commodity.h index f65df1b9..b014ee2c 100644 --- a/src/commodity.h +++ b/src/commodity.h @@ -188,9 +188,10 @@ protected: public: explicit base_t(const string& _symbol) - : supports_flags<uint_least16_t>(commodity_t::european_by_default ? - COMMODITY_STYLE_EUROPEAN : - COMMODITY_STYLE_DEFAULTS), + : supports_flags<uint_least16_t> + (commodity_t::european_by_default ? + static_cast<uint_least16_t>(COMMODITY_STYLE_EUROPEAN) : + static_cast<uint_least16_t>(COMMODITY_STYLE_DEFAULTS)), symbol(_symbol), precision(0), searched(false) { TRACE_CTOR(base_t, "const string&"); } |