MCPcopy Create free account
hub / github.com/ElementsProject/lightning / add_overflows_size_t

Function add_overflows_size_t

common/overflows.h:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <ccan/short_types/short_types.h>
5
6static inline bool add_overflows_size_t(uint64_t a, uint64_t b)
7{
8 return (size_t)a != a || (size_t)b != b || (a + b) < (size_t)a;
9}
10
11static inline bool add_overflows_u64(uint64_t a, uint64_t b)
12{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected