summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/value.cc b/value.cc
index e87a99a6..431dca19 100644
--- a/value.cc
+++ b/value.cc
@@ -236,16 +236,16 @@ bool value_t::operator OP(const value_t& value) \
*((unsigned int *) value.data)); \
\
case AMOUNT: \
- return (*((unsigned int *) data) OP \
- ((unsigned int) *((amount_t *) value.data))); \
+ return (amount_t(*((unsigned int *) data)) OP \
+ *((amount_t *) value.data)); \
\
case BALANCE: \
- return (*((unsigned int *) data) OP \
- ((unsigned int) *((balance_t *) value.data))); \
+ return (balance_t(*((unsigned int *) data)) OP \
+ *((balance_t *) value.data)); \
\
case BALANCE_PAIR: \
- return (*((unsigned int *) data) OP \
- ((unsigned int) *((balance_pair_t *) value.data))); \
+ return (balance_pair_t(*((unsigned int *) data)) OP \
+ *((balance_pair_t *) value.data)); \
\
default: \
assert(0); \