summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amount.h b/src/amount.h
index a20b46b1..730d3569 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -291,7 +291,7 @@ public:
/** Returns the negated value of an amount.
@see operator-()
*/
- amount_t negate() const {
+ amount_t negated() const {
amount_t temp(*this);
temp.in_place_negate();
return temp;
@@ -299,7 +299,7 @@ public:
void in_place_negate();
amount_t operator-() const {
- return negate();
+ return negated();
}
/** Returns the absolute value of an amount. Equivalent to:
@@ -309,7 +309,7 @@ public:
*/
amount_t abs() const {
if (sign() < 0)
- return negate();
+ return negated();
return *this;
}