MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / operator+

Method operator+

src/script/script.h:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 3

AddInt63OverflowFunction · 0.85
CScriptNumClass · 0.70

Tested by

no test coverage detected