MCPcopy Create free account
hub / github.com/eggert/tz / increment_overflow_64

Function increment_overflow_64

localtime.c:2483–2494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2481}
2482
2483static bool
2484increment_overflow_64(int *ip, int_fast64_t j)
2485{
2486#ifdef ckd_add
2487 return ckd_add(ip, *ip, j);
2488#else
2489 if (j < 0 ? *ip < INT_MIN - j : INT_MAX - j < *ip)
2490 return true;
2491 *ip += j;
2492 return false;
2493#endif
2494}
2495
2496static bool
2497increment_overflow_time_iinntt(time_t *tp, iinntt j)

Callers 1

time1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected