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

Method operator-

src/script/script.h:287–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {
290 throw scriptnum_overflow_error("script number overflow");
291 }
292 return CScriptNum(result);
293 }
294 inline CScriptNum operator+(const CScriptNum &rhs) const {
295 return operator+(rhs.m_value);
296 }

Callers

nothing calls this directly

Calls 3

SubInt63OverflowFunction · 0.85
CScriptNumClass · 0.70

Tested by

no test coverage detected