| 4 | #include <ccan/short_types/short_types.h> |
| 5 | |
| 6 | static 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 | |
| 11 | static inline bool add_overflows_u64(uint64_t a, uint64_t b) |
| 12 | { |
nothing calls this directly
no outgoing calls
no test coverage detected