diff options
Diffstat (limited to 'value.h')
-rw-r--r-- | value.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -46,8 +46,9 @@ class value_t *((unsigned int *) data) = value; type = INTEGER; } - value_t(const amount_t& value) : type(INTEGER) { - *this = value; + value_t(const amount_t& value) { + new((amount_t *)data) amount_t(value); + type = AMOUNT; } value_t(const balance_t& value) : type(INTEGER) { *this = value; |