summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commodity.h7
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&");
}