| 278 | } |
| 279 | |
| 280 | inline CScriptNum operator+(const int64_t &rhs) const { |
| 281 | int64_t result; |
| 282 | if (AddInt63Overflow(m_value, rhs, result)) { |
| 283 | throw scriptnum_overflow_error("script number overflow"); |
| 284 | } |
| 285 | return CScriptNum(result); |
| 286 | } |
| 287 | inline CScriptNum operator-(const int64_t &rhs) const { |
| 288 | int64_t result; |
| 289 | if (SubInt63Overflow(m_value, rhs, result)) { |
nothing calls this directly
no test coverage detected