diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-26 12:20:08 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-26 12:20:08 -0500 |
| commit | b7d4eb0356e9a1037a1599177cedefd4b2614e1d (patch) | |
| tree | 16fe20f3b8cddb6a285d83f61474b824d5f773a6 /sigmod/CoinListItem.cpp | |
| parent | d88d93e1e0d0d80b7c4f741a03bfe5b1976e930a (diff) | |
Added convenience macro for simple bounds checking
Diffstat (limited to 'sigmod/CoinListItem.cpp')
| -rw-r--r-- | sigmod/CoinListItem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sigmod/CoinListItem.cpp b/sigmod/CoinListItem.cpp index f12bfc75..b631cb57 100644 --- a/sigmod/CoinListItem.cpp +++ b/sigmod/CoinListItem.cpp @@ -101,9 +101,7 @@ CHECK_BEGIN(CoinListItem, int, object) break; } CHECK_END() -CHECK_BEGIN(CoinListItem, int, cost) - TBOUNDS(cost, 1, INT_MAX) -CHECK_END() +CHECK_BOUNDS(CoinListItem, int, cost, 1, INT_MAX) Sigmod::CoinListItem& Sigmod::CoinListItem::operator=(const CoinListItem& rhs) { |
