From 2d63c9364af57c732003afc7adddeb8ce62a1988 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Mar 2009 04:29:10 -0400 Subject: Changed many assert() calls to VERIFY() --- src/amount.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/amount.cc') diff --git a/src/amount.cc b/src/amount.cc index f6b3edfb..3a1fd0ad 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -129,7 +129,7 @@ void amount_t::shutdown() void amount_t::_copy(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (quantity != amt.quantity) { if (quantity) @@ -231,7 +231,7 @@ amount_t& amount_t::operator=(const amount_t& amt) int amount_t::compare(const amount_t& amt) const { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -266,7 +266,7 @@ bool amount_t::operator==(const amount_t& amt) const amount_t& amount_t::operator+=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -297,7 +297,7 @@ amount_t& amount_t::operator+=(const amount_t& amt) amount_t& amount_t::operator-=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -328,7 +328,7 @@ amount_t& amount_t::operator-=(const amount_t& amt) amount_t& amount_t::operator*=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -359,7 +359,7 @@ amount_t& amount_t::operator*=(const amount_t& amt) amount_t& amount_t::operator/=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) -- cgit v1.2.3