summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/value.h b/src/value.h
index 148d5bd6..2371b74e 100644
--- a/src/value.h
+++ b/src/value.h
@@ -183,19 +183,19 @@ public:
TRACE_CTOR(value_t, "const unsigned long");
set_amount(val);
}
- value_t(const string& val, bool literal = false) {
+ explicit value_t(const string& val, bool literal = false) {
TRACE_CTOR(value_t, "const string&, bool");
if (literal)
set_string(val);
else
- set_amount(val);
+ set_amount(amount_t(val));
}
- value_t(const char * val, bool literal = false) {
+ explicit value_t(const char * val, bool literal = false) {
TRACE_CTOR(value_t, "const char *");
if (literal)
set_string(val);
else
- set_amount(val);
+ set_amount(amount_t(val));
}
value_t(const amount_t& val) {
TRACE_CTOR(value_t, "const amount_t&");