MCPcopy Index your code
hub / github.com/git/git / date_overflows

Function date_overflows

date.c:1431–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429}
1430
1431int date_overflows(timestamp_t t)
1432{
1433 time_t sys;
1434
1435 /* If we overflowed our timestamp data type, that's bad... */
1436 if ((uintmax_t)t >= TIME_MAX)
1437 return 1;
1438
1439 /*
1440 * ...but we also are going to feed the result to system
1441 * functions that expect time_t, which is often "signed long".
1442 * Make sure that we fit into time_t, as well.
1443 */
1444 sys = t;
1445 return t != sys || (t < 1) != (sys < 1);
1446}

Callers 5

dos_timeFunction · 0.85
gm_time_tFunction · 0.85
local_tzoffsetFunction · 0.85
show_ident_dateFunction · 0.85
fsck_identFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected