mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-31 15:01:09 +00:00
Update.
* timezone/zic.c (rpytime): Replace cheap overflow check with a functioning one.
This commit is contained in:
parent
99fe3b0e7a
commit
02ade8d6b0
@ -1,5 +1,8 @@
|
|||||||
2003-07-24 Ulrich Drepper <drepper@redhat.com>
|
2003-07-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* timezone/zic.c (rpytime): Replace cheap overflow check with a
|
||||||
|
functioning one.
|
||||||
|
|
||||||
* include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
|
* include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
|
||||||
* sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
|
* sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
|
||||||
Fix calculation of offsets to take misalignment of first byte in
|
Fix calculation of offsets to take misalignment of first byte in
|
||||||
|
@ -2152,12 +2152,13 @@ register const int wantedy;
|
|||||||
}
|
}
|
||||||
if (dayoff < 0 && !TYPE_SIGNED(time_t))
|
if (dayoff < 0 && !TYPE_SIGNED(time_t))
|
||||||
return min_time;
|
return min_time;
|
||||||
|
if (dayoff < min_time / SECSPERDAY)
|
||||||
|
return min_time;
|
||||||
|
if (dayoff > max_time / SECSPERDAY)
|
||||||
|
return max_time;
|
||||||
t = (time_t) dayoff * SECSPERDAY;
|
t = (time_t) dayoff * SECSPERDAY;
|
||||||
/*
|
if (t > 0 && max_time - t < rp->r_tod)
|
||||||
** Cheap overflow check.
|
return max_time;
|
||||||
*/
|
|
||||||
if (t / SECSPERDAY != dayoff)
|
|
||||||
return (dayoff > 0) ? max_time : min_time;
|
|
||||||
return tadd(t, rp->r_tod);
|
return tadd(t, rp->r_tod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user